Opened 7 years ago

Closed 7 years ago

#11464 closed (wontfix)

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

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: UI/UX:


At the bottom of Tutorial part 3 where user is learning how to include app-specific urls (from the 'polls' app), the new included 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 Changed 7 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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