daren_project/venv/Lib/site-packages/corsheaders/apps.py

16 lines
378 B
Python

from __future__ import annotations
from django.apps import AppConfig
from django.core.checks import Tags
from django.core.checks import 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)