mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 09:36:52 +03:00
Slight change to post_gen_hook
This commit is contained in:
parent
3ac1d1edb9
commit
439766ea8f
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user