mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
import ssl
This commit is contained in:
parent
757fcc418a
commit
cddfa6c7c5
|
@ -1,30 +1,28 @@
|
||||||
# ruff: noqa: E501
|
# ruff: noqa: E501
|
||||||
# Standard Library
|
|
||||||
import logging
|
|
||||||
import ssl
|
import ssl
|
||||||
|
|
||||||
{% if cookiecutter.use_sentry == 'y' -%}
|
{% if cookiecutter.use_sentry == 'y' -%}
|
||||||
# Third-party
|
import logging
|
||||||
|
|
||||||
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
|
||||||
{% endif -%}
|
|
||||||
|
|
||||||
# Local
|
{% 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,
|
|
||||||
env,
|
|
||||||
{%- if cookiecutter.use_drf == "y" %}
|
{%- if cookiecutter.use_drf == "y" %}
|
||||||
SPECTACULAR_SETTINGS,
|
from .base import SPECTACULAR_SETTINGS
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
)
|
from .base import env
|
||||||
|
|
||||||
# GENERAL
|
# GENERAL
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user