Opened 13 years ago

Closed 13 years ago

#17279 closed Bug (invalid)

Missing step in "Writing Your First Django App, Part 2"

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

The section "Activate the Admin Site" doesn't tell you to run 'python manage.py syncdb' after uncommenting the admin lines. This is apparently an important step, and not obvious from the error you get if you try to save a change.

BTW, thanks for putting together such a great tutorial -- it's been very helpful.

Change History (1)

comment:1 by Ramiro Morales, 13 years ago

Resolution: invalid
Status: newclosed

It is right there, in the second item of the bulleted list:

https://docs.djangoproject.com/en/1.3/intro/tutorial02/#activate-the-admin-site

Quoting:

Activate the admin site

The Django admin site is not activated by default -- it's an opt-in thing. To activate the admin site for your installation, do these three things:

  • Add "django.contrib.admin" to your INSTALLED_APPS setting.
  • Run python manage.py syncdb. Since you have added a new application to INSTALLED_APPS, the database tables need to be updated.
  • ...
Note: See TracTickets for help on using tickets.
Back to Top