mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Merge branch 'fix_routers' into 'dev'
Update CHANGELOG.md See merge request re2o/re2o!536
This commit is contained in:
commit
2a12f168ae
1 changed files with 13 additions and 0 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -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"]
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue