#11464: tutorial part 3: recommend removing 'mysite' from view prefix in polls
specific urls.py
---------------------------+------------------------------------------------
Reporter: cid | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
At the bottom of [http://docs.djangoproject.com/en/dev/intro/tutorial03
/#decoupling-the-urlconfs Tutorial part 3] where user is learning how to
include app-specific urls (from the 'polls' app), the new included urls.py
file (in polls app) starts with:
{{{
urlpatterns = patterns('mysite.polls.views', ...
}}}
Presumably 'mysite' should be removed from the patterns view prefix at
this point to really decouple the app from the project. I tried doing that
and it worked (changing "mysite.polls.views" to just "polls.views").
--
Ticket URL: <http://code.djangoproject.com/ticket/11464>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---