Django

Code

Changeset 4846

Show
Ignore:
Timestamp:
03/29/07 06:05:44 (1 year ago)
Author:
russellm
Message:

Fixed #3858 -- Updated pieces of tutorial 1 to reflect recent changes. Thanks to Kashif Razzaqui for the report, and Simon for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial01.txt

    r4618 r4846  
    134134database's connection parameters: 
    135135 
    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`_
    138138    * ``DATABASE_NAME`` -- The name of your database, or the full (absolute) 
    139139      path to the database file if you're using SQLite. 
     
    144144      (not used for SQLite). 
    145145 
     146.. _also available: ../settings/ 
     147 
    146148.. admonition:: Note 
    147149 
     
    320322    python manage.py sql polls 
    321323 
    322 You should see the following (the CREATE TABLE SQL statements for the polls app):: 
     324You should see something similar to the following (the CREATE TABLE SQL statements  
     325for the polls app):: 
    323326 
    324327    BEGIN; 
     
    338341Note the following: 
    339342 
     343    * The exact output will vary depending on the database you are using. 
     344     
    340345    * Table names are automatically generated by combining the name of the app 
    341346      (``polls``) and the lowercase name of the model -- ``poll`` and 
     
    366371      construction of your models. 
    367372 
    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.  
    370376 
    371377    * ``python manage.py sqlclear polls`` -- Outputs the necessary ``DROP