Slight change to post_gen_hook

This commit is contained in:
Daniel Roy Greenfeld 2015-11-07 19:47:31 -08:00
parent 3ac1d1edb9
commit 439766ea8f
2 changed files with 7 additions and 6 deletions

View File

@ -3,10 +3,13 @@ All enhancements and patches to cookiecutter-django will be documented in this f
This project adheres to [Semantic Versioning](http://semver.org/).
## [2015-11-7]
### Added
- newrelic support (@amjith)
- DJANGO_SENTRY_DSN to env.example (@jayfk)
### Changed
- Added newrelic support (@amjith)
- Fixed an error where celery could'nt load the sentry DSN from settings (@jayfk)
- Added DJANGO_SENTRY_DSN to env.example (@jayfk)
- Made `post_gen_hook.set_secret_key()` only changes one CHANGEME!!! at a time.
- Fixed an error where celery couldn't load the sentry DSN from settings (@jayfk)
- Renamed ADMIN_URL to DJANGO_ADMIN_URL in env.example (@ChrisPappalardo)
## [2015-11-06]

View File

@ -62,10 +62,9 @@ def set_secret_key(setting_file_location):
# Generate a SECRET_KEY that matches the Django standard
SECRET_KEY = get_random_string()
SECRET_KEY = 'CHANGEME!!!' + SECRET_KEY
# Replace "CHANGEME!!!" with SECRET_KEY
file_ = file_.replace('CHANGEME!!!', SECRET_KEY)
file_ = file_.replace('CHANGEME!!!', SECRET_KEY, 1)
# Write the results to the locals.py module
with open(setting_file_location, 'w') as f:
@ -92,7 +91,6 @@ def make_secret_key(project_directory):
set_secret_key(env_file)
def remove_task_app(project_directory):
"""Removes the taskapp if celery isn't going to be used"""
# Determine the local_setting_file_location