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)),

)

Change History (1)

comment:1 by Baptiste Mispelon, 11 years ago

Resolution: invalid
Status: newclosed

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:

  • Make sure you're following the tutorial for the version of django you're actually using (there's a version switcher on the lower right hand corner of each page of the documentation);
  • Make sure you've followed the project/app creation process correctly. For example, make sure you've run the 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.

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