Skip to content

Instantly share code, notes, and snippets.

@acatejr
Last active August 18, 2016 22:05
Show Gist options
  • Save acatejr/b91cfcec455f801c99d69e0aa7f68732 to your computer and use it in GitHub Desktop.
Save acatejr/b91cfcec455f801c99d69e0aa7f68732 to your computer and use it in GitHub Desktop.
Django URL Patterns
# An example of a url with three parameters separated by forward slash.
url(r'^addresspermits/(?P<param1>.+)/(?P<param2>.+)/(?P<param3>.+)/$','views.method_name', name='method_name'),
# Single value parameter that allows a combination of upper and lower case characters.
url(r'^detail/(?P<param>[\w|\W]+)$', 'views.detail', name='detail'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment