Ticket #3858: tutorial01.diff
File tutorial01.diff, 1.9 KB (added by , 18 years ago) |
---|
-
docs/tutorial01.txt
133 133 variables representing Django settings. Change these settings to match your 134 134 database's connection parameters: 135 135 136 * ``DATABASE_ENGINE`` -- Either 'postgresql ', 'mysql' or 'sqlite3'.137 More coming soon.136 * ``DATABASE_ENGINE`` -- Either 'postgresql_psycopg2', 'mysql' or 'sqlite3'. 137 Other backends are `also available`_. 138 138 * ``DATABASE_NAME`` -- The name of your database, or the full (absolute) 139 139 path to the database file if you're using SQLite. 140 140 * ``DATABASE_USER`` -- Your database username (not used for SQLite). … … 143 143 empty string if your database server is on the same physical machine 144 144 (not used for SQLite). 145 145 146 .. _also available: ../settings/ 147 146 148 .. admonition:: Note 147 149 148 150 If you're using PostgreSQL or MySQL, make sure you've created a database by … … 329 331 ); 330 332 CREATE TABLE "polls_choice" ( 331 333 "id" serial NOT NULL PRIMARY KEY, 332 "poll_id" integer NOT NULL REFERENCES "polls_poll" ("id") ,334 "poll_id" integer NOT NULL REFERENCES "polls_poll" ("id") DEFERRABLE INITIALLY DEFERRED, 333 335 "choice" varchar(200) NOT NULL, 334 336 "votes" integer NOT NULL 335 337 ); 336 338 COMMIT; 337 339 340 338 341 Note the following: 339 342 340 343 * Table names are automatically generated by combining the name of the app … … 365 368 * ``python manage.py validate polls`` -- Checks for any errors in the 366 369 construction of your models. 367 370 368 * ``python manage.py sql initialdatapolls`` -- Outputs any initial data371 * ``python manage.py sqlcustom polls`` -- Outputs any initial data 369 372 required for Django's admin framework and your models. 370 373 371 374 * ``python manage.py sqlclear polls`` -- Outputs the necessary ``DROP