Skip to content

Instantly share code, notes, and snippets.

@jacobwyke
Created November 6, 2017 17:08
Show Gist options
  • Save jacobwyke/b844210856a80cc78044068126e7493b to your computer and use it in GitHub Desktop.
Save jacobwyke/b844210856a80cc78044068126e7493b to your computer and use it in GitHub Desktop.
Split URL regex so that it passes PEP8/flake8 line length requirements
urlpatterns = [
url(r'^reset_password/(?P<uidb64>[0-9A-Za-z_\-]+)/'
r'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
views.reset_password, name='reset_password'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment