This commit is contained in:
qwerrrqw 2024-11-16 03:12:57 +09:00
parent d35d22332b
commit 1677f1ab7f

View File

@ -1,29 +1,29 @@
# ruff: noqa: E501 # ruff: noqa: E501
import logging
import ssl
{% if cookiecutter.use_sentry == 'y' -%} {% if cookiecutter.use_sentry == 'y' -%}
import logging
import sentry_sdk import sentry_sdk
{%- if cookiecutter.use_celery == 'y' %}
import ssl
from sentry_sdk.integrations.celery import CeleryIntegration
{%- endif %}
from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration from sentry_sdk.integrations.redis import RedisIntegration
{%- if cookiecutter.use_celery == 'y' %}
from sentry_sdk.integrations.celery import CeleryIntegration
{%- endif %}
{% endif -%} {% endif -%}
from .base import * # noqa: F403 from .base import * # noqa: F403
from .base import ( from .base import DATABASES
DATABASES, from .base import INSTALLED_APPS
INSTALLED_APPS, from .base import REDIS_URL
REDIS_URL,
{%- if cookiecutter.use_drf == "y" %} {%- if cookiecutter.use_drf == "y" %}
SPECTACULAR_SETTINGS, from .base import SPECTACULAR_SETTINGS
{%- endif %} {%- endif %}
env, from .base import env
)
# GENERAL # GENERAL
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------