Ticket #3858: tutorial01.diff

File tutorial01.diff, 1.9 KB (added by Simon G. <dev@…>, 17 years ago)

patch implementing kashif razzaqui's changes.

  • docs/tutorial01.txt

     
    133133variables representing Django settings. Change these settings to match your
    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.
    140140    * ``DATABASE_USER`` -- Your database username (not used for SQLite).
     
    143143      empty string if your database server is on the same physical machine
    144144      (not used for SQLite).
    145145
     146.. _also available: ../settings/
     147
    146148.. admonition:: Note
    147149
    148150    If you're using PostgreSQL or MySQL, make sure you've created a database by
     
    329331    );
    330332    CREATE TABLE "polls_choice" (
    331333        "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,
    333335        "choice" varchar(200) NOT NULL,
    334336        "votes" integer NOT NULL
    335337    );
    336338    COMMIT;
    337339
     340
    338341Note the following:
    339342
    340343    * Table names are automatically generated by combining the name of the app
     
    365368    * ``python manage.py validate polls`` -- Checks for any errors in the
    366369      construction of your models.
    367370
    368     * ``python manage.py sqlinitialdata polls`` -- Outputs any initial data
     371    * ``python manage.py sqlcustom polls`` -- Outputs any initial data
    369372      required for Django's admin framework and your models.
    370373
    371374    * ``python manage.py sqlclear polls`` -- Outputs the necessary ``DROP
Back to Top