Skip to content
Snippets Groups Projects
Commit e9c879fc authored by Maxim Scheremetjew's avatar Maxim Scheremetjew
Browse files

chore(settings): Move SECRET_KEY and DEBUG value to env vars.

parent bdfcd59c
No related branches found
No related tags found
1 merge request!5chore(settings): Move SECRET_KEY and DEBUG value to env vars.
......@@ -15,6 +15,8 @@ services:
networks:
- microservices
environment:
- DEBUG=true
- SECRET_KEY=blahe9w5c92)o5x%!awwfhduln=06xl%u_*(x%)_7s9y3v3f971tek
# Logging
- CONSOLE_LOGGING_HANDLER_MIN_LEVEL=DEBUG
- CUSTOM_LOGGING
......
......@@ -26,10 +26,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-v0^6_+1bnh9wswkfe%8*dbo#*-#m#q5p!tny_uf-@s06o=e@&3"
SECRET_KEY = env.str("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = env.bool("DEBUG", default=False)
# The logging must to be the first thing to configure to get the logs raised here
LOGGING = get_logging_config(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment