Opened 15 years ago

Closed 15 years ago

#11464 closed (wontfix)

tutorial part 3: recommend removing 'mysite' from view prefix in polls specific urls.py

Reported by: cid Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

At the bottom of 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").

Change History (1)

comment:1 by Russell Keith-Magee, 15 years ago

Resolution: wontfix
Status: newclosed

Decoupling the apps from the project is part of a much bigger task that needs to be addressed in the docs. It isn't as simple as just changing the import line - I suspect an entire new tutorial will be required.

Note: See TracTickets for help on using tickets.
Back to Top