diff options
-rw-r--r-- | korabo/settings.py | 6 |
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 |