Bases: exceptions.Exception
The key file permissions are insecure.
Secret key generator.
The quality of randomness depends on operating system support, see http://docs.python.org/library/random.html#random.SystemRandom.
Multiprocess-safe secret key file generator.
Useful to replace the default (and thus unsafe) SECRET_KEY in settings.py upon first start. Save to use, i.e. when multiple Python interpreters serve the dashboard Django application (e.g. in a mod_wsgi + daemonized environment). Also checks if file permissions are set correctly and throws an exception if not.