the settings for databases are now in /etc/authentic2/settings.d
And not in the source tree of the authentic project. License MIT
This commit is contained in:
parent
57c4c35bdc
commit
1ed252a1d3
|
@ -1,21 +0,0 @@
|
|||
.. _change_db:
|
||||
|
||||
===============================
|
||||
Specifying a different database
|
||||
===============================
|
||||
|
||||
This is done by modifying the DATABASES dictionary in your local_settings.py
|
||||
file (create it in Authentic project directory); for example::
|
||||
|
||||
DATABASES['default'] = {
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'authentic',
|
||||
'USER': 'admindb',
|
||||
'PASSWORD': 'foobar',
|
||||
'HOST': 'db.example.com',
|
||||
'PORT': '', # empty string means default value
|
||||
}
|
||||
|
||||
You should refer to the Django documentation on databases settings at
|
||||
http://docs.djangoproject.com/en/dev/ref/settings/#databases for all
|
||||
the details.
|
|
@ -17,6 +17,25 @@ Installation
|
|||
|
||||
The Debian GNU/Linux packages published at https://deb.entrouvert.org/ follow the `release cycle of Publik <https://dev.entrouvert.org/projects/publik/wiki/Cycle_de_mises_%C3%A0_jour>`__.
|
||||
|
||||
Specifying a different database
|
||||
-------------------------------
|
||||
|
||||
This is done by modifying the DATABASES dictionary in
|
||||
`/etc/authentic2/settings.d/database.py`. For example::
|
||||
|
||||
DATABASES['default'] = {
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'authentic',
|
||||
'USER': 'admindb',
|
||||
'PASSWORD': 'foobar',
|
||||
'HOST': 'db.example.com',
|
||||
'PORT': '', # empty string means default value
|
||||
}
|
||||
|
||||
You should refer to the Django documentation on databases settings at
|
||||
http://docs.djangoproject.com/en/dev/ref/settings/#databases for all
|
||||
the details.
|
||||
|
||||
Quickstart guides and installation guidelines
|
||||
---------------------------------------------
|
||||
|
||||
|
@ -24,7 +43,6 @@ Quickstart guides and installation guidelines
|
|||
:maxdepth: 1
|
||||
|
||||
|
||||
change_db
|
||||
deployment
|
||||
|
||||
Quickstarts
|
||||
|
|
Reference in New Issue