Ticket #1040: 1040.diff
File 1040.diff, 606 bytes (added by , 13 years ago) |
---|
-
django/core/management/commands/startproject.py
37 37 settings_contents = re.sub(r"(?<=SECRET_KEY = ')'", secret_key + "'", settings_contents) 38 38 fp.write(settings_contents) 39 39 fp.close() 40 41 # Assign execution permission to manage.py 42 manage_file = os.path.join(directory, project_name, 'manage.py') 43 os.chmod(manage_file, int('755', 8))