#21385 closed Uncategorized (invalid)

Tutorial part 2 missing steps to enable admin page (uncommenting urls.py)

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.4
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

https://docs.djangoproject.com/en/dev/intro/tutorial02/

In order to access the admin page following along in the tutorial, you must also uncomment several lines in the urls.py which is not mentioned in part 1 or part 2 of the tutorial

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
...
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

Change History (1)

comment:1 Changed 22 months ago by timo

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

You are looking at the tutorial for the development version of Django (note "dev" in the URL). You can access the tutorial that corresponds to Django 1.4 here: https://docs.djangoproject.com/en/1.4/intro/tutorial02/

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