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:
Loïc Dachary 2021-06-18 11:49:41 +02:00
parent 57c4c35bdc
commit 1ed252a1d3
No known key found for this signature in database
GPG Key ID: 130A0B53C3EEB5FA
2 changed files with 19 additions and 22 deletions

View File

@ -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.

View File

@ -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