8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Merge branch 'fix_routers' into 'dev'

Update CHANGELOG.md

See merge request re2o/re2o!536
This commit is contained in:
chirac 2020-05-21 18:47:56 +02:00
commit 2a12f168ae

View file

@ -217,3 +217,16 @@ apt install python3-dev
Make sure that all depending packages (python3-django etc) provided in the new
apt_requirements_radius.txt are installed.
## MR 535 : Routers
It is now possible to use a custom router file, if you want to have mutli database
support, with for example one as master database and one as replica database.
If you want to add a database routers, please fill in in settings_local.py
and add your databse.
Then, add a file "local_routers.py" in folder app re2o, and add your router path
in the settings_local.py file :
```python
LOCAL_ROUTERS = ["re2o.local_routers.DbRouter"]
```