Changeset 5601 for django/branches/unicode/django/core
- Timestamp:
- 07/04/07 01:02:00 (2 years ago)
- Files:
-
- django/branches/unicode (modified) (1 prop)
- django/branches/unicode/django/core/management.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode
- Property svnmerge-integrated changed from /django/trunk:1-5579 to /django/trunk:1-5600
django/branches/unicode/django/core/management.py
r5531 r5601 833 833 sys.exit(1) 834 834 _start_helper('project', project_name, directory) 835 835 836 # Create a random SECRET_KEY hash, and put it in the main settings. 836 837 main_settings_file = os.path.join(directory, project_name, 'settings.py') 837 838 settings_contents = open(main_settings_file, 'r').read() 839 840 # If settings.py was copied from a read-only source, make it writeable. 841 if not os.access(main_settings_file, os.W_OK): 842 os.chmod(main_settings_file, 0600) 843 838 844 fp = open(main_settings_file, 'w') 839 845 secret_key = ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)])
