Opened 19 years ago
Closed 19 years ago
#3858 closed (fixed)
Tutorial 1 needs to be updated to reflect changes in 0.96
| Reported by: | 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
- In Database setup, DATABASE_ENGINE should have the additional option - postgresql_psycopg2
- 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;
- The command python manage.py sqlinitialdata polls has been renamed to python manage.py sqlcustom polls
Attachments (1)
Change History (3)
comment:1 by , 19 years ago
| Cc: | added |
|---|---|
| Has patch: | set |
| Summary: | Changes in the 0.96 → Tutorial 1 needs to be updated to reflect changes in 0.96 |
| Triage Stage: | Unreviewed → Ready for checkin |
by , 19 years ago
| Attachment: | tutorial01.diff added |
|---|
comment:2 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch implementing kashif razzaqui's changes.