Code

Opened 8 months ago

Closed 8 months 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)),

)

Attachments (0)

Change History (1)

comment:1 Changed 8 months ago by bmispelon

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

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.

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.