summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic <me@domdit.com>2024-10-28 12:44:30 -0400
committerDominic <me@domdit.com>2024-10-28 12:44:30 -0400
commitda2b82562fd6232e9a9f085fd2d49b625b3bdbe2 (patch)
treee8d1eaee392f6e63cc4f5517b5fd9354e5aab2d1
parentb30da975af9a01e8c4a31c784a422272033fc87f (diff)
settings
-rw-r--r--korabo/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/korabo/settings.py b/korabo/settings.py
index cd4f4e7..57a6871 100644
--- a/korabo/settings.py
+++ b/korabo/settings.py
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
"""
from pathlib import Path
+import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -25,9 +26,11 @@ SECRET_KEY = 'django-insecure-2zbb@9m=%exl38+&(1*4lp5dz(kg__p9uqba0junq096h6i^ni
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = ['0.0.0.0', '192.168.1.65', 'domdit.com', 'korabo.domdit.com', '127.0.0.1']
+CSRF_TRUSTED_ORIGINS = ['https://korabo.domdit.com']
+
# Application definition
INSTALLED_APPS = [
@@ -118,6 +121,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
+STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field