mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 17:34:52 +03:00
fix: Remove DB URL instantiation completely in Production
This commit is contained in:
parent
fb8efe8e20
commit
d93719313c
|
@ -22,9 +22,6 @@ ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["{{ cookiecutter.domai
|
|||
|
||||
# DATABASES
|
||||
# ------------------------------------------------------------------------------
|
||||
{% if cookiecutter.use_docker == "n" -%}
|
||||
DATABASES["default"] = env.db("DATABASE_URL") # noqa F405
|
||||
{%- endif %}
|
||||
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=60) # noqa F405
|
||||
|
||||
# CACHES
|
||||
|
|
Loading…
Reference in New Issue
Block a user