Created
September 7, 2011 14:06
-
-
Save richleland/1200643 to your computer and use it in GitHub Desktop.
urlpattern
This file contains hidden or 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
| # in urls.py | |
| (r'^(?P<taxonomy>[-/\w]+)/', include('myapp.urls')) | |
| # in myapp/urls.py | |
| url(r'^articles/(?P<slug>[\w-]+)/$', ContentView.as_view(model=Article), name='content-article') | |
| # why doesn't the url /foo/bar/baz/articles/my-article/ resolve? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How does the first pattern know when to stop looking for more URL segments?