mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-03 19:50:11 +03:00
Merge 8ce9a7f233
into 457515aada
This commit is contained in:
commit
a775c021ce
|
@ -1 +1 @@
|
|||
web: gunicorn --pythonpath="$PWD/{{cookiecutter.repo_name}}" config.wsgi:application
|
||||
web: gunicorn --pythonpath="$PWD/{{cookiecutter.project_name}}" config.wsgi:application
|
||||
|
|
|
@ -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_STORAGE_BUCKET_NAME=BUCKET
|
||||
git push heroku master
|
||||
heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings
|
||||
heroku run python {{cookiecutter.repo_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 syncdb --noinput --settings=config.settings
|
||||
heroku run python {{cookiecutter.project_name}}/manage.py migrate --settings=config.settings
|
||||
heroku run python {{cookiecutter.project_name}}/manage.py collectstatic --settings=config.settings
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ class Common(Configuration):
|
|||
|
||||
########## DATABASE CONFIGURATION
|
||||
# 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
|
||||
|
||||
########## CACHING
|
||||
|
|
Loading…
Reference in New Issue
Block a user