Skip to content

Commit

Permalink
fix(cookiecutter/README): specifiy django configurations for collecti…
Browse files Browse the repository at this point in the history
…ng static
  • Loading branch information
agconti committed Jan 22, 2018
1 parent a764975 commit c5b1a39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions {{cookiecutter.github_repository_name}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ heroku create {{cookiecutter.app_name}}-prod --remote prod && \
DJANGO_AWS_ACCESS_KEY_ID="Add your id" \
DJANGO_AWS_SECRET_ACCESS_KEY="Add your key" \
DJANGO_AWS_STORAGE_BUCKET_NAME="{{cookiecutter.app_name}}-prod" \
DJANGO_CONFIGURATION="Production" \
DJANGO_SETTINGS_MODULE="{{cookiecutter.app_name}}.config" \
--app {{cookiecutter.app_name}}-prod
```

Expand All @@ -51,6 +53,8 @@ heroku create {{cookiecutter.app_name}}-qa --remote qa && \
DJANGO_AWS_ACCESS_KEY_ID="Add your id" \
DJANGO_AWS_SECRET_ACCESS_KEY="Add your key" \
DJANGO_AWS_STORAGE_BUCKET_NAME="{{cookiecutter.app_name}}-qa" \
DJANGO_CONFIGURATION="Production" \
DJANGO_SETTINGS_MODULE="{{cookiecutter.app_name}}.config" \
--app {{cookiecutter.app_name}}-qa
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Production(Common):
# https://docs.djangoproject.com/en/2.0/howto/static-files/
# http://django-storages.readthedocs.org/en/latest/index.html
INSTALLED_APPS += ('storages',)
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3BotoStorage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_ACCESS_KEY_ID = os.getenv('DJANGO_AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.getenv('DJANGO_AWS_SECRET_ACCESS_KEY')
Expand Down

0 comments on commit c5b1a39

Please sign in to comment.