Opened 7 years ago

Closed 7 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


The section "Activate the Admin Site" doesn't tell you to run 'python 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 Changed 7 years ago by Ramiro Morales

Resolution: invalid
Status: newclosed

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


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 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