Skip to content
Snippets Groups Projects
Commit 59a39ecc authored by Nicola Jordan's avatar Nicola Jordan
Browse files

remove production db setting and use sensible default

parent 50d11737
No related branches found
No related tags found
1 merge request!884Feature/sane defaults
......@@ -103,7 +103,6 @@ MANAGERS = ADMINS
# ------------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
# Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
'default': env.db("DJANGO_DATABASE_URL", default="postgis://postgres@mediatordatabase/postgres"),
}
DATABASES['default']['ATOMIC_REQUESTS'] = True
......
......@@ -13,7 +13,6 @@ MIDDLEWARE_CLASSES = (
# during start if any of the corresponding environment variables aren't set.
SECRET_KEY = env.str("DJANGO_SECRET_KEY")
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS")
DATABASES['default'] = env.db("DJANGO_DATABASE_URL")
INSTALLED_APPS += (
'gunicorn',
......
......@@ -12,7 +12,6 @@ MIDDLEWARE_CLASSES = (
# get an exception when starting, if they are not defined
SECRET_KEY = env.str("DJANGO_SECRET_KEY")
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS")
DATABASES['default'] = env.db("DJANGO_DATABASE_URL")
INSTALLED_APPS += (
'gunicorn',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment