From da2b82562fd6232e9a9f085fd2d49b625b3bdbe2 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 28 Oct 2024 12:44:30 -0400 Subject: settings --- korabo/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2