Secret key to env

This commit is contained in:
2022-06-27 12:03:22 +03:00
parent 57c5cf0fde
commit d1a62ea500
+3 -2
View File
@@ -20,10 +20,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-e8_mgg=!)2-#0v*nf-fwity(fhvqfu_ek1vvc1j6%q9g8%z51#' import os
SECRET_KEY = os.environ['SECRET_KEY']
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []