mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 11:34:00 +03:00
Merge pull request #64 from theskumar/collectfast
feat(aws/s3): use Collectfast by @antonagestam for faster collectstatic.
This commit is contained in:
commit
8f84ab8c16
|
@ -4,5 +4,6 @@
|
||||||
|
|
||||||
gunicorn==0.17.4
|
gunicorn==0.17.4
|
||||||
django-storages==1.1.4
|
django-storages==1.1.4
|
||||||
|
Collectfast==0.1.13
|
||||||
gevent==0.13.8
|
gevent==0.13.8
|
||||||
boto==2.9.5
|
boto==2.9.5
|
||||||
|
|
|
@ -100,7 +100,7 @@ class Common(Configuration):
|
||||||
join(BASE_DIR, 'fixtures'),
|
join(BASE_DIR, 'fixtures'),
|
||||||
)
|
)
|
||||||
########## END FIXTURE CONFIGURATION
|
########## END FIXTURE CONFIGURATION
|
||||||
|
|
||||||
########## EMAIL CONFIGURATION
|
########## EMAIL CONFIGURATION
|
||||||
EMAIL_BACKEND = values.Value('django.core.mail.backends.smtp.EmailBackend')
|
EMAIL_BACKEND = values.Value('django.core.mail.backends.smtp.EmailBackend')
|
||||||
########## END EMAIL CONFIGURATION
|
########## END EMAIL CONFIGURATION
|
||||||
|
@ -348,6 +348,10 @@ class Production(Common):
|
||||||
AWS_AUTO_CREATE_BUCKET = True
|
AWS_AUTO_CREATE_BUCKET = True
|
||||||
AWS_QUERYSTRING_AUTH = False
|
AWS_QUERYSTRING_AUTH = False
|
||||||
|
|
||||||
|
# see: https://github.com/antonagestam/collectfast
|
||||||
|
AWS_PRELOAD_METADATA = True
|
||||||
|
INSTALLED_APPS += ("collectfast", )
|
||||||
|
|
||||||
# AWS cache settings, don't change unless you know what you're doing:
|
# AWS cache settings, don't change unless you know what you're doing:
|
||||||
AWS_EXPIREY = 60 * 60 * 24 * 7
|
AWS_EXPIREY = 60 * 60 * 24 * 7
|
||||||
AWS_HEADERS = {
|
AWS_HEADERS = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user