Self hosted FLOSS fitness/workout, nutrition and weight tracker
Allow configuring the server's admins as well as the location of the sqlite db file
Roland Geider2cc5d721084d
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.pyindex 59f37f0e5..23ce0d0d2 100644--- a/extras/docker/development/settings.py+++ b/extras/docker/development/settings.py@@ -14,10 +14,11 @@ env = environ.Env(# Use 'DEBUG = True' to get more details for server errorsDEBUG = env("DJANGO_DEBUG")-ADMINS = (- ('Your name', '[email protected]'),-)-MANAGERS = ADMINS+if os.environ.get('DJANGO_ADMINS'):+ ADMINS = (+ env.list('DJANGO_ADMINS')+ )+ MANAGERS = ADMINSif os.environ.get("DJANGO_DB_ENGINE"):DATABASES = {@@ -34,7 +35,7 @@ else:DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3',- 'NAME': '/home/wger/db/database.sqlite',+ 'NAME': env.str('DJANGO_DB_DATABASE', '/home/wger/db/database.sqlite'),}}