From b7781b40bef02d19768ab7820583ee57f028f7a5 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 24 Nov 2023 19:26:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D0=B2=20settings.py=20Debug=20=3D=20False,=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D1=86=D0=B8=D1=8E=20=D0=B2=20=D0=B8=D0=BD=D1=81?= =?UTF-8?q?=D1=82=D1=80=D1=83=D0=BA=D1=86=D0=B8=D1=8E=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + adminpanel/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cc30e0..a5cd134 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ http://t.me/Test_TPlatform_bot get_random_secret_key() 3. Вставьте полученный ключ в файл .env PLATFORM_ADMINPANEL_SECRET_KEY='ваш секретный ключ' +4. Для отладки проекта в adminpanel/settings.py установите DEBUG = False ### diff --git a/adminpanel/settings.py b/adminpanel/settings.py index 82495b0..5a2fd0c 100644 --- a/adminpanel/settings.py +++ b/adminpanel/settings.py @@ -24,7 +24,7 @@ load_dotenv() SECRET_KEY = os.getenv('PLATFORM_ADMINPANEL_SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['*']