Code

Opened 6 years ago

Closed 6 years ago

#6190 closed (invalid)

Part 3 Feedback urls.py

Reported by: txcine-dp@… Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In the section of Part 3: Time for an example. "Edit mysite/urls.py so it looks like this:"

You should note explicitly to comment out or delete the (r'^admin/', include('django.contrib.admin.urls')), in the mysite/urls.py or you should have steps where both the "results" and "vote" views are added. The urls.py simply won't work with admin and polls.views.results and/or polls.views.results as is (i.e. w/o their respective views).

However, if you delete (or comment out) the url point to admin, you obviously can't navigate to /admin anymore.

I'm just stating this from a noob's point of view.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by Ron <txcine-dp@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by anonymous

This ticket looks bogus to me.

The tutorial clearly states that no views have been created yet in section Write your first view.

But it's true that Time for an example. Edit mysite/urls.py so it looks like this: does not contain admin views, this should perhaps be fixed.

comment:3 Changed 6 years ago by arien

  • Resolution set to invalid
  • Status changed from new to closed

The tutorial asks you to edit your urls.py so that it looks like the given urls.py (which doesn't contain any pattern for admin views).

The polls views aren't supposed to work at that point; you haven't written them yet. See Write your first view.

(Ticket #6286 is about the fact that django.contrib.admin.urls isn't included in urls.py.)

Marking as invalid.

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.