Project-Stage-Academy / UA1244_beta

1 stars 0 forks source link

Remove hardcoded values from setting.py #29

Open mehalyna opened 3 weeks ago

mehalyna commented 3 weeks 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'