Commit 43e5f0da authored by Mav's avatar Mav

Fix settings

parent 23ede768
Pipeline #2702 canceled with stages
SECRET_KEY = 'django-insecure-h0t9c9@7wpvg*w&x-3l8w_bsu(!s99lefvtv^%*5-vr6zr+bu8'
\ No newline at end of file
......@@ -9,9 +9,15 @@ https://docs.djangoproject.com/en/4.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
"""
import os
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
......@@ -20,7 +26,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-h0t9c9@7wpvg*w&x-3l8w_bsu(!s99lefvtv^%*5-vr6zr+bu8'
SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment