Code

Opened 5 years ago

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

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").

Attachments (0)

Change History (1)

comment:1 Changed 5 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.