Merge pull request #4 from qwerrrqw/ruff/redis-TLS-support

test
This commit is contained in:
qwerrrqw 2024-11-16 03:13:38 +09:00 committed by GitHub
commit 5bd94d5fdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
# ------------------------------------------------------------------------------