Ticket #1040: 1040.diff

File 1040.diff, 606 bytes (added by Flavio Curella, 13 years ago)
  • django/core/management/commands/startproject.py

     
    3737        settings_contents = re.sub(r"(?<=SECRET_KEY = ')'", secret_key + "'", settings_contents)
    3838        fp.write(settings_contents)
    3939        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))
Back to Top