mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-10 16:12:29 +03:00
Updated INSTALLED_APPS for 'collectfast'.
This commit is contained in:
parent
9c4ad0da1a
commit
abd0883b61
|
@ -7,6 +7,8 @@ Production Configurations
|
||||||
- Use sendgrid to send emails
|
- Use sendgrid to send emails
|
||||||
- Use MEMCACHIER on Heroku
|
- Use MEMCACHIER on Heroku
|
||||||
'''
|
'''
|
||||||
|
import django
|
||||||
|
|
||||||
from configurations import values
|
from configurations import values
|
||||||
|
|
||||||
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
|
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
|
||||||
|
@ -83,7 +85,10 @@ class Production(Common):
|
||||||
|
|
||||||
# see: https://github.com/antonagestam/collectfast
|
# see: https://github.com/antonagestam/collectfast
|
||||||
AWS_PRELOAD_METADATA = True
|
AWS_PRELOAD_METADATA = True
|
||||||
|
if django.VERSION < (1, 7):
|
||||||
INSTALLED_APPS += ('collectfast', )
|
INSTALLED_APPS += ('collectfast', )
|
||||||
|
else:
|
||||||
|
INSTALLED_APPS = ('collectfast', ) + INSTALLED_APPS
|
||||||
|
|
||||||
# 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_EXPIRY = 60 * 60 * 24 * 7
|
AWS_EXPIRY = 60 * 60 * 24 * 7
|
||||||
|
|
Loading…
Reference in New Issue
Block a user