Changeset 4846
- Timestamp:
- 03/29/07 06:05:44 (1 year ago)
- Files:
-
- django/trunk/docs/tutorial01.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/tutorial01.txt
r4618 r4846 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. … … 144 144 (not used for SQLite). 145 145 146 .. _also available: ../settings/ 147 146 148 .. admonition:: Note 147 149 … … 320 322 python manage.py sql polls 321 323 322 You should see the following (the CREATE TABLE SQL statements for the polls app):: 324 You should see something similar to the following (the CREATE TABLE SQL statements 325 for the polls app):: 323 326 324 327 BEGIN; … … 338 341 Note the following: 339 342 343 * The exact output will vary depending on the database you are using. 344 340 345 * Table names are automatically generated by combining the name of the app 341 346 (``polls``) and the lowercase name of the model -- ``poll`` and … … 366 371 construction of your models. 367 372 368 * ``python manage.py sqlinitialdata polls`` -- Outputs any initial data 369 required for Django's admin framework and your models. 373 * ``python manage.py sqlcustom polls`` -- Outputs any custom SQL statements 374 (such as table modifications or constraints) that are defined for the 375 application. 370 376 371 377 * ``python manage.py sqlclear polls`` -- Outputs the necessary ``DROP
