From 6546417aa229ee241739d218fe0e05e03578936d Mon Sep 17 00:00:00 2001 From: Dima yawaflua Andreev Date: Fri, 24 May 2024 16:37:33 +0300 Subject: [PATCH] Update settings.py --- SusMarket/settings.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SusMarket/settings.py b/SusMarket/settings.py index 6d4c163..835626a 100644 --- a/SusMarket/settings.py +++ b/SusMarket/settings.py @@ -21,13 +21,15 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-s-%!9lh6x^5co=ff@oa2tv2yyx5a^b&4(6#4icyswignggc4cf' +SECRET_KEY = '' +# Are u dumb? # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - -ALLOWED_HOSTS = [] +DEBUG = False +# Debug in prod? So strong... +ALLOWED_HOSTS = ["SusMarket.ru"] +# or ur url # Application definition @@ -62,6 +64,7 @@ REST_FRAMEWORK = { CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOWED_ORIGINS = ['http://localhost:3000'] +# CORS in this project is exellent! ROOT_URLCONF = 'SusMarket.urls'