fix: Remove production db settings being duplicate

This commit is contained in:
adinhodovic 2022-11-27 22:30:56 +01:00
parent 65ac3d8a3f
commit fb8efe8e20

View File

@ -22,8 +22,9 @@ ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["{{ cookiecutter.domai
# DATABASES
# ------------------------------------------------------------------------------
{% if cookiecutter.use_docker == "n" -%}
DATABASES["default"] = env.db("DATABASE_URL") # noqa F405
DATABASES["default"]["ATOMIC_REQUESTS"] = True # noqa F405
{%- endif %}
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=60) # noqa F405
# CACHES