2025-07-25
This commit is contained in:
@@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-_rrxhe5i6uqap!52u(1zi8x$820duvf5s_!9!bc4ghbyyktol0
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = ["localhost"]
|
||||
|
||||
# TMDB API KEY
|
||||
TMDB_API_KEY = os.environ.get("TMDB_API_KEY")
|
||||
@@ -67,6 +67,7 @@ TEMPLATES = [
|
||||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'boxofficefantasy.context_processors.debug_flag'
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -129,3 +130,8 @@ MEDIA_ROOT = BASE_DIR / "media"
|
||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"http://localhost:3000",
|
||||
"http://127.0.0.1:3000",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user