Opened 14 years ago

Closed 14 years ago

#13865 closed (duplicate)

decoupling app from project in tutorial part 3

Reported by: Ralf Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords: documentation, tutorial, URLconf
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 end of the tutorial, part 3, there is an example of decoupling the app "polls" from the project "mysite".
The URLconf-pattern is written as

urlpatterns = patterns('mysite.polls.views',

This way, the app ist still coupled to the project. I tried

urlpatterns = patterns('polls.views',

and it works!
If this a feature, you should document this in the tutorial and in the URlDispatcher

Thanks for the great product Django

Ralf

Change History (1)

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

Resolution: duplicate
Status: newclosed

Duplicate of #13507, #12126, #11464, #11424, #11172, #10081, #9860, #9767, #7709, #7660, #7650, #7443, #5283, #4087 and #3941.

We know about this issue, but it's not as simple as just removing a prefix. We need to do a tutorial rewrite to introduce the idea of reusable apps.

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