From f53eb4d9247f7cae003a824c2b1612917cf09ce0 Mon Sep 17 00:00:00 2001 From: ix <0x00fi@protonmail.com> Date: Mon, 6 Sep 2021 20:12:03 +0200 Subject: [PATCH] local settings --- src/project/settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/project/settings.py b/src/project/settings.py index 3aa24e9..87d39e3 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -12,6 +12,11 @@ https://docs.djangoproject.com/en/2.2/ref/settings/ import os from django.utils.translation import gettext_lazy as _ +from local_settings import * +try: + from local_settings import * +except ImportError: + pass # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -20,8 +25,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'secret' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True