fix(project_name): fix for repo_name used intead of project_name

It fixes the issue where `{{cookiecutter.repo_name}}` used in place of
`{{cookiecutter.project_name}}`. This creates a bug if the repo and
project are different.
This commit is contained in:
Saurabh Kumar 2014-02-22 04:30:40 +05:30
parent 8616f77b75
commit 8ce9a7f233
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
web: gunicorn --pythonpath="$PWD/{{cookiecutter.repo_name}}" config.wsgi:application web: gunicorn --pythonpath="$PWD/{{cookiecutter.project_name}}" config.wsgi:application

View File

@ -75,7 +75,7 @@ Run these commands to deploy the project to Heroku:
heroku config:set DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY heroku config:set DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
heroku config:set DJANGO_AWS_STORAGE_BUCKET_NAME=BUCKET heroku config:set DJANGO_AWS_STORAGE_BUCKET_NAME=BUCKET
git push heroku master git push heroku master
heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings heroku run python {{cookiecutter.project_name}}/manage.py syncdb --noinput --settings=config.settings
heroku run python {{cookiecutter.repo_name}}/manage.py migrate --settings=config.settings heroku run python {{cookiecutter.project_name}}/manage.py migrate --settings=config.settings
heroku run python {{cookiecutter.repo_name}}/manage.py collectstatic --settings=config.settings heroku run python {{cookiecutter.project_name}}/manage.py collectstatic --settings=config.settings

View File

@ -117,7 +117,7 @@ class Common(Configuration):
########## DATABASE CONFIGURATION ########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}') DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.project_name}}')
########## END DATABASE CONFIGURATION ########## END DATABASE CONFIGURATION
########## CACHING ########## CACHING