I have created a signed token using Django in order to create a URL for validating email addresses. I now need to ensure my urlpattern matches the token Django creates.
The token is created using the following function:
from django.core import signing
def create_token(verify_code, partial_token):
   token = {
      'verify_code': verify_code,
      'partial_token': partial_token
   }
   return signing.dumps(token)
And I have the following url + regex:
url(r'^email/validation/(?P<signed_token>[^/]+)/$', core_views.email_validation,
    name='email_validation')
Is (?P<signed_token>[^/]+) the correct regex to pickup all possible tokens created using that function.
 
    