caktus / django-project-template

Django project template for startproject (Requires 2.2+)
211 stars 53 forks source link

Consider forcing SECRET_KEY to be used from the environment #219

Closed vkurup closed 8 years ago

vkurup commented 8 years ago

We currently get SECRET_KEY using os.environ.get with a hardcoded fallback. This is nice for development, since you don't have to remember to set it in the environment, but there's a risk that if you forget to set it in the staging/prod environment, then those servers will use the hardcoded fallback (possibly available in a public github repo).

Options: