jforman / binder

Django Web Admin Gui for manging BIND DNS Zones
129 stars 41 forks source link

Makes SECRET_KEY secret #18

Closed Dunedan closed 9 years ago

Dunedan commented 9 years ago

To quote from Djangos documentation:

The secret key must be a large random value and it must be kept secret. https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/#secret-key

This commit achieves that by generating a file containing a random string when running the first time and by using this string as SECRET_KEY from then on.