Last active
August 18, 2016 22:05
-
-
Save acatejr/b91cfcec455f801c99d69e0aa7f68732 to your computer and use it in GitHub Desktop.
Django URL Patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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