Kaydet (Commit) 72a6ac56 authored tarafından Tim Graham's avatar Tim Graham

Fixed #19279 - Clarified order of database setup and Django install.

Thanks colinnkeenan for the suggestion.
üst ed711c4b
...@@ -124,14 +124,16 @@ database bindings are installed. ...@@ -124,14 +124,16 @@ database bindings are installed.
* If you're using an unofficial 3rd party backend, please consult the * If you're using an unofficial 3rd party backend, please consult the
documentation provided for any additional requirements. documentation provided for any additional requirements.
If you plan to use Django's ``manage.py syncdb`` command to If you plan to use Django's ``manage.py syncdb`` command to automatically
automatically create database tables for your models, you'll need to create database tables for your models (after first installing Django and
ensure that Django has permission to create and alter tables in the creating a project), you'll need to ensure that Django has permission to create
database you're using; if you plan to manually create the tables, you and alter tables in the database you're using; if you plan to manually create
can simply grant Django ``SELECT``, ``INSERT``, ``UPDATE`` and the tables, you can simply grant Django ``SELECT``, ``INSERT``, ``UPDATE`` and
``DELETE`` permissions. On some databases, Django will need ``DELETE`` permissions. On some databases, Django will need ``ALTER TABLE``
``ALTER TABLE`` privileges during ``syncdb`` but won't issue privileges during ``syncdb`` but won't issue ``ALTER TABLE`` statements on a
``ALTER TABLE`` statements on a table once ``syncdb`` has created it. table once ``syncdb`` has created it. After creating a database user with these
permissions, you'll specify the details in your project's settings file,
see :setting:`DATABASES` for details.
If you're using Django's :doc:`testing framework</topics/testing>` to test If you're using Django's :doc:`testing framework</topics/testing>` to test
database queries, Django will need permission to create a test database. database queries, Django will need permission to create a test database.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment