Opened 10 years ago

Closed 10 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@…> 10 years ago.
patch implementing kashif razzaqui's changes.

Download all attachments as: .zip

Change History (3)

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

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

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

Attachment: tutorial01.diff added

patch implementing kashif razzaqui's changes.

comment:2 Changed 10 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top