This commit is contained in:
qwerrrqw 2024-11-15 23:12:21 +09:00
parent ad008e95c7
commit c8fb4a128b
2 changed files with 13 additions and 14 deletions

View File

@ -42,4 +42,4 @@
"ci_tool": ["None", "Travis", "Gitlab", "Github", "Drone"], "ci_tool": ["None", "Travis", "Gitlab", "Github", "Drone"],
"keep_local_envs_in_vcs": "y", "keep_local_envs_in_vcs": "y",
"debug": "n" "debug": "n"
} }

View File

@ -1,27 +1,26 @@
# ruff: noqa: E501 # ruff: noqa: E501
{% if cookiecutter.use_sentry == 'y' -%} import logging # 표준 라이브러리
import logging import ssl # 표준 라이브러리
import ssl
{% if cookiecutter.use_sentry == 'y' -%}
import sentry_sdk import sentry_sdk
{%- if cookiecutter.use_celery == 'y' %} {%- if cookiecutter.use_celery == 'y' %}
from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.celery import CeleryIntegration
{%- endif %} {%- 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
{% else %}
import ssl
{% endif -%} {% endif -%}
from .base import * # noqa: F403
from .base import DATABASES from .base import * # noqa: F403
from .base import INSTALLED_APPS from .base import DATABASES # 로컬 모듈
from .base import REDIS_URL from .base import INSTALLED_APPS # 로컬 모듈
from .base import env from .base import REDIS_URL # 로컬 모듈
from .base import env # 로컬 모듈
{%- if cookiecutter.use_drf == "y" %} {%- if cookiecutter.use_drf == "y" %}
from .base import SPECTACULAR_SETTINGS from .base import SPECTACULAR_SETTINGS # DRF 관련 설정
{%- endif %} {%- endif %}
# GENERAL # GENERAL