2025-07-26
This commit is contained in:
@@ -34,6 +34,7 @@ TMDB_API_KEY = os.environ.get("TMDB_API_KEY")
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"daphne",
|
||||
'boxofficefantasy',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
@@ -41,7 +42,9 @@ INSTALLED_APPS = [
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'django.contrib.humanize'
|
||||
'django.contrib.humanize',
|
||||
"draft",
|
||||
"channels"
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -59,7 +62,7 @@ ROOT_URLCONF = 'boxofficefantasy_project.urls'
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [BASE_DIR / 'templates'],
|
||||
'DIRS': [],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
@@ -135,3 +138,14 @@ CSRF_TRUSTED_ORIGINS = [
|
||||
"http://localhost:3000",
|
||||
"http://127.0.0.1:3000",
|
||||
]
|
||||
|
||||
ASGI_APPLICATION = "boxofficefantasy_project.asgi.application"
|
||||
|
||||
# Channel layers
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels.layers.InMemoryChannelLayer",
|
||||
},
|
||||
}
|
||||
|
||||
HASHIDS_SALT = "your-very-secret-salt-string"
|
||||
|
||||
Reference in New Issue
Block a user