wg-backend-django/dell-env/lib/python3.11/site-packages/corsheaders/apps.py

15 lines
348 B
Python
Raw Normal View History

2023-10-30 03:40:43 -04:00
from __future__ import annotations
from django.apps import AppConfig
from django.core.checks import Tags, register
from corsheaders.checks import check_settings
class CorsHeadersAppConfig(AppConfig):
name = "corsheaders"
verbose_name = "django-cors-headers"
def ready(self) -> None:
register(Tags.security)(check_settings)