24 lines
716 B
Python
24 lines
716 B
Python
import os
|
|
|
|
from django.conf import settings
|
|
|
|
DEBUG = True
|
|
|
|
SESSION_COOKIE_SECURE = False
|
|
CSRF_COOKIE_SECURE = False
|
|
|
|
CSRF_COOKIE_SAMESITE = "Lax"
|
|
SESSION_COOKIE_SAMESITE = "Lax"
|
|
|
|
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "localhost,127.0.0.1").split(",")
|
|
|
|
CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "http://localhost,http://127.0.0.1").split(",")
|
|
|
|
CORS_ALLOW_ALL_ORIGINS = True
|
|
CORS_ALLOWED_ORIGINS = os.getenv("CORS_ALLOWED_ORIGINS", "http://localhost:5173,http://127.0.0.1:5173").split(",")
|
|
|
|
# Django Debug Toolbar
|
|
INSTALLED_APPS = settings.INSTALLED_APPS + ["debug_toolbar"]
|
|
MIDDLEWARE = settings.MIDDLEWARE + ["debug_toolbar.middleware.DebugToolbarMiddleware"]
|
|
INTERNAL_IPS = ["127.0.0.1"]
|