diff --git a/core/settings.py b/core/settings.py index 97101f1..aacdb0b 100644 --- a/core/settings.py +++ b/core/settings.py @@ -18,14 +18,14 @@ BASE_DIR = Path(__file__).resolve().parent.parent +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = os.environ.get("DJANGO_DEBUG") + # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = os.environ.get("DJANGO_SECRET", "") - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.environ.get("DJANGO_DEBUG") +SECRET_KEY = "djangocon" if DEBUG else os.environ.get("DJANGO_SECRET", "") ALLOWED_HOSTS = [] diff --git a/website/admin.py b/website/admin.py index 8c38f3f..4185d36 100644 --- a/website/admin.py +++ b/website/admin.py @@ -1,3 +1,3 @@ -from django.contrib import admin +# from django.contrib import admin # Register your models here. diff --git a/website/models.py b/website/models.py index 71a8362..0b4331b 100644 --- a/website/models.py +++ b/website/models.py @@ -1,3 +1,3 @@ -from django.db import models +# from django.db import models # Create your models here.