mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-05 20:50:17 +03:00
commit
5bd94d5fdb
|
@ -1,29 +1,29 @@
|
|||
# ruff: noqa: E501
|
||||
import logging
|
||||
import ssl
|
||||
|
||||
{% if cookiecutter.use_sentry == 'y' -%}
|
||||
import logging
|
||||
|
||||
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.logging import LoggingIntegration
|
||||
from sentry_sdk.integrations.redis import RedisIntegration
|
||||
{%- if cookiecutter.use_celery == 'y' %}
|
||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||
{%- endif %}
|
||||
|
||||
{% endif -%}
|
||||
|
||||
from .base import * # noqa: F403
|
||||
from .base import (
|
||||
DATABASES,
|
||||
INSTALLED_APPS,
|
||||
REDIS_URL,
|
||||
from .base import DATABASES
|
||||
from .base import INSTALLED_APPS
|
||||
from .base import REDIS_URL
|
||||
{%- if cookiecutter.use_drf == "y" %}
|
||||
SPECTACULAR_SETTINGS,
|
||||
from .base import SPECTACULAR_SETTINGS
|
||||
{%- endif %}
|
||||
env,
|
||||
)
|
||||
from .base import env
|
||||
|
||||
# GENERAL
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user