Opened 11 years ago
Closed 11 years ago
#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)), )
Note:
See TracTickets
for help on using tickets.
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/