mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-22 10:56:39 +03:00
updated settings
This commit is contained in:
parent
59fc828097
commit
e4bfd5ca07
|
@ -5,6 +5,7 @@
|
|||
|
||||
import environ
|
||||
import structlog
|
||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||
|
||||
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
|
||||
# akarpov/
|
||||
|
@ -483,7 +484,7 @@
|
|||
"SERVE_INCLUDE_SCHEMA": False,
|
||||
"SERVERS": [
|
||||
{"url": "http://127.0.0.1:8000", "description": "Local Development server"},
|
||||
{"url": "https://akarpov.ru", "description": "Production server"},
|
||||
{"url": "https://new.akarpov.ru", "description": "Production server"},
|
||||
],
|
||||
}
|
||||
|
||||
|
@ -587,5 +588,6 @@
|
|||
signals_spans=True,
|
||||
cache_spans=True,
|
||||
),
|
||||
CeleryIntegration(monitor_beat_tasks=True, propagate_traces=True),
|
||||
],
|
||||
)
|
||||
|
|
|
@ -52,14 +52,9 @@
|
|||
# ------------------------------------------------------------------------------
|
||||
# https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
|
||||
INSTALLED_APPS += ["django_extensions"] # noqa F405
|
||||
# Celery
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#task-eager-propagates
|
||||
CELERY_TASK_EAGER_PROPAGATES = True
|
||||
|
||||
|
||||
# SHORTENER
|
||||
# ------------------------------------------------------------------------------
|
||||
SHORTENER_REDIRECT_TO = "https://dev2.akarpov.ru"
|
||||
SHORTENER_HOST = "https://dev.akarpov.ru"
|
||||
SHORTENER_REDIRECT_TO = env("SHORTENER_REDIRECT_TO", default="http://127.0.0.1:8000")
|
||||
SHORTENER_HOST = env("SHORTENER_HOST", default="http://127.0.0.1:8000")
|
||||
|
|
Loading…
Reference in New Issue
Block a user