Project-Stage-Academy / UA1198ForumSB

UA-1198 Project Stage Forum SandBox
0 stars 0 forks source link

Remove hardcoded values from setting.py #35

Closed m-o-d-e-r closed 1 week ago

m-o-d-e-r commented 1 week ago

Some variables have hard-coded values, so we need to change the approach we get the data.

Here is a possible solution.

SECRET_KEY = environ.get('DJANGO_SECRET_KEY', 'default-secret-key')

and

DEBUG = environ.get('DJANGO_DEBUG', 'False') == 'True'