Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 12:30, 5 March 2011
, 13 years ago→Adding URLs to urls.py
imported>Paulproteus |
imported>Paulproteus |
||
Line 432:
)
This is worth a review. When somebody requests a page from your Web site -- say, "/polls/23/", Django will load the ''urls.py'' Python module, because it's pointed to by the ROOT_URLCONF setting. It finds the variable named urlpatterns and traverses the regular expressions in order. When it finds a regular expression that matches -- r'^polls/(
detail(request=<HttpRequest object>, '23')
|