8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Fix, add a possible local_routers.py file for routers database use

This commit is contained in:
Gabriel Detraz 2020-05-21 18:34:14 +02:00 committed by root
parent 804101a9da
commit 48b084e047
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

@ -44,5 +44,6 @@ static/logo/
# re2o specific # re2o specific
settings_local.py settings_local.py
local_routers.py
re2o.png re2o.png
media/ media/

View file

@ -154,6 +154,8 @@ USE_TZ = True
# Router config for database # Router config for database
DATABASE_ROUTERS = ["ldapdb.router.Router"] DATABASE_ROUTERS = ["ldapdb.router.Router"]
if "LOCAL_ROUTERS" in globals():
DATABASE_ROUTERS += LOCAL_ROUTERS
# django-bootstrap3 config # django-bootstrap3 config
BOOTSTRAP3 = { BOOTSTRAP3 = {

View file

@ -103,6 +103,11 @@ UID_RANGES = {"users": [21001, 30000], "service-users": [20000, 21000]}
# A range of GID to use. Used in linux environement # A range of GID to use. Used in linux environement
GID_RANGES = {"posix": [501, 600]} GID_RANGES = {"posix": [501, 600]}
# If you want to add a database routers, please fill in above and add your databse.
# Then, add a file "local_routers.py" in folder app re2o, and add your router path in
# the LOCAL_ROUTERS var as "re2o.local_routers.DbRouter". You can also add extra routers.
LOCAL_ROUTERS = []
# Some optionnal Re2o Apps # Some optionnal Re2o Apps
OPTIONNAL_APPS_RE2O = () OPTIONNAL_APPS_RE2O = ()