mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-18 12:30:57 +03:00
commit
38b29c23c8
|
@ -22,7 +22,7 @@ class Local(Common):
|
||||||
# END INSTALLED_APPS
|
# END INSTALLED_APPS
|
||||||
|
|
||||||
# Mail settings
|
# Mail settings
|
||||||
EMAIL_HOST = "localhost"
|
EMAIL_HOST = 'localhost'
|
||||||
EMAIL_PORT = 1025
|
EMAIL_PORT = 1025
|
||||||
EMAIL_BACKEND = values.Value('django.core.mail.backends.console.EmailBackend')
|
EMAIL_BACKEND = values.Value('django.core.mail.backends.console.EmailBackend')
|
||||||
# End mail settings
|
# End mail settings
|
||||||
|
|
|
@ -4,7 +4,7 @@ Production Configurations
|
||||||
|
|
||||||
- Use djangosecure
|
- Use djangosecure
|
||||||
- Use Amazon's S3 for storing static files and uploaded media
|
- Use Amazon's S3 for storing static files and uploaded media
|
||||||
- Use sendgird to sendemails
|
- Use sendgrid to send emails
|
||||||
- Use MEMCACHIER on Heroku
|
- Use MEMCACHIER on Heroku
|
||||||
'''
|
'''
|
||||||
from configurations import values
|
from configurations import values
|
||||||
|
@ -74,13 +74,13 @@ class Production(Common):
|
||||||
|
|
||||||
# see: https://github.com/antonagestam/collectfast
|
# see: https://github.com/antonagestam/collectfast
|
||||||
AWS_PRELOAD_METADATA = True
|
AWS_PRELOAD_METADATA = True
|
||||||
INSTALLED_APPS += ("collectfast", )
|
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_EXPIRY = 60 * 60 * 24 * 7
|
||||||
AWS_HEADERS = {
|
AWS_HEADERS = {
|
||||||
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
||||||
AWS_EXPIREY, AWS_EXPIREY)
|
AWS_EXPIRY, AWS_EXPIRY)
|
||||||
}
|
}
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user