django/django — pull request #2714 by aj7may (2014-05-26 03:45:07+00:00)
Title: Fixed #20081 -- Minimized risk of SECRET_KEY leak.

By default set the SECRET_KEY value to be loaded from env vars. If not
set and DEBUG==True generate a random SECRET_KEY. Also adds the
generatesecret management command, which prints a random secret key to
stdout.