Skip to content

Commit

Permalink
fix: Remove production db settings being duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 28, 2022
1 parent 65ac3d8 commit fb437a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions {{cookiecutter.project_slug}}/config/settings/production.py
Expand Up @@ -2,13 +2,13 @@
import logging

import sentry_sdk

{%- if cookiecutter.use_celery == 'y' %}
from sentry_sdk.integrations.celery import CeleryIntegration
{%- endif %}
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration

{% endif -%}
from .base import * # noqa
from .base import env
Expand All @@ -22,8 +22,9 @@

# 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
Expand Down

0 comments on commit fb437a3

Please sign in to comment.