Django

Code

Ticket #3858 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Tutorial 1 needs to be updated to reflect changes in 0.96

Reported by: kashif.razzaqui@tremyn.com Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords: 0.96 changes database manage.py sql
Cc: dev@simon.net.nz Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

1. In Database setup, DATABASE_ENGINE should have the additional option - postgresql_psycopg2

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


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

Attachments

tutorial01.diff (1.9 kB) - added by Simon G. <dev@simon.net.nz> on 03/29/07 01:29:52.
patch implementing kashif razzaqui's changes.

Change History

03/29/07 01:29:12 changed by Simon G. <dev@simon.net.nz>

  • cc set to dev@simon.net.nz.
  • needs_better_patch changed.
  • needs_tests changed.
  • summary changed from Changes in the 0.96 to Tutorial 1 needs to be updated to reflect changes in 0.96.
  • needs_docs changed.
  • has_patch set to 1.
  • stage changed from Unreviewed to Ready for checkin.

03/29/07 01:29:52 changed by Simon G. <dev@simon.net.nz>

  • attachment tutorial01.diff added.

patch implementing kashif razzaqui's changes.

03/29/07 06:05:44 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(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/Change #3858 (Tutorial 1 needs to be updated to reflect changes in 0.96)




Change Properties
Action