Opened 11 years ago
Closed 11 years ago
#20912 closed Uncategorized (invalid)
A little modification on the tutorial
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.5 |
Severity: | Normal | 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
Im unsure why, but on the beginning of the 3rd part of the tutorial, in the configuration of polls.urls only worked after I added mysite to polls
polls/urls.py
from polls import views
I changed to
from mysite.polls import views
Also added the mysite to the other urls.py
urlpatterns = patterns(,
url(r'polls/', include('mysite.polls.urls')),
url(r'admin/', include(admin.site.urls)),
)
Note:
See TracTickets
for help on using tickets.
Hi,
The tutorial looks correct to me so something else must have gone wrong on your end.
Here's a few things you could check:
startapp
command from inside the top-level directory of your project.If you're still running into problems, you can get some more help on our support channels: https://docs.djangoproject.com/en/1.5/faq/help/
Thanks.