Code

Opened 2 years ago

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

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by ramiro

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

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 2 years ago by ramiro (previous) (diff)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.