Ticket #15822: remove-references-to-postgresql-v1.patch
File remove-references-to-postgresql-v1.patch, 4.5 KB (added by , 14 years ago) |
---|
-
docs/howto/initial-data.txt
136 136 ---------------------------------- 137 137 138 138 There's also a hook for backend-specific SQL data. For example, you 139 can have separate initial-data files for PostgreSQL and MySQL. For139 can have separate initial-data files for PostgreSQL and SQLite. For 140 140 each app, Django looks for a file called 141 141 ``<appname>/sql/<modelname>.<backend>.sql``, where ``<appname>`` is 142 142 your app directory, ``<modelname>`` is the model's name in lowercase 143 143 and ``<backend>`` is the last part of the module name provided for the 144 144 :setting:`ENGINE` in your settings file (e.g., if you have defined a 145 145 database with an :setting:`ENGINE` value of 146 ``django.db.backends. postgresql``, Django will look for147 ``<appname>/sql/<modelname>. postgresql.sql``).146 ``django.db.backends.sqlite3``, Django will look for 147 ``<appname>/sql/<modelname>.sqlite3.sql``). 148 148 149 149 Backend-specific SQL data is executed before non-backend-specific SQL 150 150 data. For example, if your app contains the files ``sql/person.sql`` 151 and ``sql/person. postgresql.sql`` and you're installing the app on152 PostgreSQL, Django will execute the contents of153 ``sql/person. postgresql.sql`` first, then ``sql/person.sql``.151 and ``sql/person.sqlite3.sql`` and you're installing the app on 152 SQLite, Django will execute the contents of 153 ``sql/person.sqlite3.sql`` first, then ``sql/person.sql``. -
docs/topics/install.txt
92 92 In addition to a database backend, you'll need to make sure your Python 93 93 database bindings are installed. 94 94 95 * If you're using PostgreSQL, you'll need the psycopg_ package. Django supports 96 both version 1 and 2. (When you configure Django's database layer, specify 97 either ``postgresql`` [for version 1] or ``postgresql_psycopg2`` [for version 2].) 95 * If you're using PostgreSQL, you'll need the ``postgresql_psycopg2`` package. 98 96 You might want to refer to our :ref:`PostgreSQL notes <postgresql-notes>` for 99 97 further technical details specific to this database. 100 98 -
docs/ref/settings.txt
394 394 The database backend to use. The built-in database backends are: 395 395 396 396 * ``'django.db.backends.postgresql_psycopg2'`` 397 * ``'django.db.backends.postgresql'``398 397 * ``'django.db.backends.mysql'`` 399 398 * ``'django.db.backends.sqlite3'`` 400 399 * ``'django.db.backends.oracle'`` … … 498 497 string is passed directly through to the database, so its format is 499 498 backend-specific. 500 499 501 Supported for the PostgreSQL_ (``postgresql ``, ``postgresql_psycopg2``) and502 MySQL_ (``mysql``)backends.500 Supported for the PostgreSQL_ (``postgresql_psycopg2``) and MySQL_ (``mysql``) 501 backends. 503 502 504 503 .. _PostgreSQL: http://www.postgresql.org/docs/8.2/static/multibyte.html 505 504 .. _MySQL: http://dev.mysql.com/doc/refman/5.0/en/charset-database.html -
django/conf/project_template/settings.py
11 11 12 12 DATABASES = { 13 13 'default': { 14 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', ' postgresql', 'mysql', 'sqlite3' or 'oracle'.14 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 15 15 'NAME': '', # Or path to database file if using sqlite3. 16 16 'USER': '', # Not used with sqlite3. 17 17 'PASSWORD': '', # Not used with sqlite3. -
django/conf/global_settings.py
143 143 144 144 # Database connection info. 145 145 # Legacy format 146 DATABASE_ENGINE = '' # 'postgresql_psycopg2', ' postgresql', 'mysql', 'sqlite3' or 'oracle'.146 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 147 147 DATABASE_NAME = '' # Or path to database file if using sqlite3. 148 148 DATABASE_USER = '' # Not used with sqlite3. 149 149 DATABASE_PASSWORD = '' # Not used with sqlite3.