@@ -0,0 +1,715 @@
+'''Command to create a secret_key.py file and a new secret key to it.%0A%0ACreated on Aug 23, 2010%0A%0A@author: jnaous%0A'''%0Afrom random import choice%0Afrom django.core.management.base import NoArgsCommand%0Afrom django.conf import settings%0Aimport os.path%0A%0Aclass Command(NoArgsCommand):%0A    help = %22Generate a new secret key and write it in secret_key.py%22%0A%0A    def handle_noargs(self, **options):%0A        print %22Generating new key in secret_key.py...%22%0A        key = ''.join(%5Bchoice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%25%5E&*(-_=+)') for i in range(50)%5D)%0A        f = open(os.path.join(settings.PROJ_DIR, %22secret_key.py%22), mode=%22w%22)%0A        f.write(%22SECRET_KEY = '%25s'%5Cn%22 %25 key)%0A        f.close()%0A        print %22Done.%22%0A        

add command to create secret_key