I\'m using Django\'s URLconf, the URL I will receive is /?code=authenticationcode I want to match the URL using r\'^\\?code=(?P.*)$\'>
/?code=authenticationcode
r\'^\\?code=(?P.*)$\'>
.*)$\'>
Django's urls.py does not parse query strings, so there is no way to get this information at the urls.py file.
urls.py
Instead, parse it in your view:
def foo(request): code = request.GET.get('code') if code: # do stuff else: # No code!