Django

Code

Ticket #4307 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

Unclear location of ROOT_URLCONF in tutorial 3

Reported by: rogerpack2005@gmail.com Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In tutorial 3 it says that "When you ran python manage.py startproject mysite at the beginning of Tutorial 1, it created a default URLconf in mysite/urls.py. It also automatically set your ROOT_URLCONF setting to point at that file:

ROOT_URLCONF = 'mysite.urls'

" in reality we ran "django-admin.py startproject mysite" and it did not set up a default ROOT_URLCONF.

Attachments

Change History

05/15/07 17:04:31 changed by rogerpack2005@gmail.com

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

Oops I was confused. What it failed to mention was that ROOT_URLCONF is automatically setup "in settings.py" -- I thought it was auto set up in urls.py, as the documentation made me think it was. thanks!

05/15/07 17:18:33 changed by SmileyChris

  • summary changed from typo in tutorial 3 to Unclear location of ROOT_URLCONF in tutorial 3.
  • stage changed from Unreviewed to Accepted.

Thanks for the report Roger. While the implicit wording of "setting" makes it obvious to veterans, you bring up a good point that it could be said more explicitly.

If you feel up to it, it is always appreciated if you could provide a patch. Update the documentation file with the more explicit instructions, create the diff and attach to this ticket.

05/25/07 19:49:27 changed by roger

so diff the html output?

05/25/07 22:05:27 changed by SmileyChris

Checkout the SVN, edit the documentation txt file (restructured text format) and attach the diff.

05/27/07 08:11:30 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5365]) Fixed #4307 -- Clarified that ROOT_URLCONF is in settings.py and fixed a small typo. Pointed out by rogerpack2005@gmail.com.


Add/Change #4307 (Unclear location of ROOT_URLCONF in tutorial 3)




Change Properties
Action