Opened 18 years ago

Closed 18 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: no UI/UX: no

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

Download all attachments as: .zip

Change History (3)

comment:1 by Simon G. <dev@…>, 18 years ago

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

by Simon G. <dev@…>, 18 years ago

Attachment: tutorial01.diff added

patch implementing kashif razzaqui's changes.

comment:2 by Russell Keith-Magee, 18 years ago

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