Ticket #16782: db_engine_from_tutorial_svn16720.patch

File db_engine_from_tutorial_svn16720.patch, 1.6 KB (added by mjumbewu@…, 7 years ago)

Fix the refernce to database engine setting from the tutorial

  • docs/intro/tutorial01.txt

    diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
    index 23c05ba..2f2e049 100644
    a b code, then run the following command: 
    4141.. code-block:: bash
    4343   django-admin.py startproject mysite
    4545This will create a ``mysite`` directory in your current directory.
    4747.. admonition:: Script name may differ in distribution packages
    module-level variables representing Django settings. Change the 
    173173following keys in the :setting:`DATABASES` ``'default'`` item to match
    174174your databases connection settings.
    176     * :setting:`ENGINE` -- Either
     176    * :setting:`ENGINE <DATABASE-ENGINE>` -- Either
    177177      ``'django.db.backends.postgresql_psycopg2'``,
    178178      ``'django.db.backends.mysql'`` or
    179179      ``'django.db.backends.sqlite3'``. Other backends are
    180       :setting:`also available <ENGINE>`.
     180      :setting:`also available <DATABASE-ENGINE>`.
    182182    * :setting:`NAME` -- The name of your database. If you're using
    183183      SQLite, the database will be a file on your computer; in that
    Save these changes and start a new Python interactive shell by running 
    693693For more information on model relations, see :doc:`Accessing related objects
    694694</ref/models/relations>`. For more on how to use double underscores to perform
    695 field lookups via the API, see `Field lookups`__. For full details on the 
     695field lookups via the API, see `Field lookups`__. For full details on the
    696696database API, see our :doc:`Database API reference </topics/db/queries>`.
    698698__ http://docs.djangoproject.com/en/1.2/topics/db/queries/#field-lookups
Back to Top