Code

Opened 7 years ago

Closed 7 years ago

#3858 closed (fixed)

Tutorial 1 needs to be updated to reflect changes in 0.96

Reported by: kashif.razzaqui@… Owned by: jacob
Component: Documentation Version:
Severity: Keywords: 0.96 changes database manage.py sql
Cc: dev@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

  1. In Database setup, DATABASE_ENGINE should have the additional option - postgresql_psycopg2
  1. PostgreSQL output when executing command -python manage.py sql polls is no longer precise, underneath is the output generated in PostgreSQL with psycopg2
BEGIN;
CREATE TABLE "polls_poll" (
    "id" serial NOT NULL PRIMARY KEY,
    "question" varchar(200) NOT NULL,
    "pub_date" timestamp with time zone NOT NULL
);
CREATE TABLE "polls_choice" (
    "id" serial NOT NULL PRIMARY KEY,
    "poll_id" integer NOT NULL REFERENCES "polls_poll" ("id") DEFERRABLE INITIALLY DEFERRED,
    "choice" varchar(200) NOT NULL,
    "votes" integer NOT NULL
);
COMMIT;


  1. The command python manage.py sqlinitialdata polls has been renamed to python manage.py sqlcustom polls

Attachments (1)

tutorial01.diff (1.9 KB) - added by Simon G. <dev@…> 7 years ago.
patch implementing kashif razzaqui's changes.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Cc dev@… added
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Changes in the 0.96 to Tutorial 1 needs to be updated to reflect changes in 0.96
  • Triage Stage changed from Unreviewed to Ready for checkin

Changed 7 years ago by Simon G. <dev@…>

patch implementing kashif razzaqui's changes.

comment:2 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [4846]) Fixed #3858 -- Updated pieces of tutorial 1 to reflect recent changes. Thanks to Kashif Razzaqui for the report, and Simon for the patch.

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.