Opened 13 years ago

Closed 13 years ago

#18222 closed Cleanup/optimization (invalid)

Missing a step on part two of the 1.4 tutorial

Reported by: chris.uzal@… 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: yes UI/UX: no

Description

Page two of the django tutorial is missing a step. After adding the code for added in polls in the administration, it goes straight to "restart your server." The database needs to be synched before starting the development server again.

Go to…

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

Subsection entitled "Make the poll app modifiable in the admin"…

Create admin.py file…

*The missing critical step to create the necessary admin table…

python manage.py syncdb*

Then…

Restart the server.

Change History (1)

comment:1 by Ramiro Morales, 13 years ago

Resolution: invalid
Status: newclosed

No, there is no need to run manage syncdb at that point because there is no need to create new DB tables from the actions you performed in the tutorial 2 so far (no new models were added to the models.py file).

If you run manage.py syncdb at that point and it reports it is creating at least one database table it is because you forgot to execute it when following part 1 of the tutorial.

Last edited 13 years ago by Ramiro Morales (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top