mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
Merge 6afdef61b8
into ce5b7a1f59
This commit is contained in:
commit
ac34a7c847
|
@ -38,6 +38,7 @@ Andy Rose
|
||||||
Andrew Mikhnevich / @zcho
|
Andrew Mikhnevich / @zcho
|
||||||
Kevin Ndung'u / @kevgathuku
|
Kevin Ndung'u / @kevgathuku
|
||||||
Kaveh / @ka7eh
|
Kaveh / @ka7eh
|
||||||
|
Jeff Johnson / @jeffcjohnson
|
||||||
|
|
||||||
* Possesses commit rights
|
* Possesses commit rights
|
||||||
|
|
||||||
|
|
|
@ -92,9 +92,6 @@ class Production(Common):
|
||||||
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
||||||
AWS_EXPIRY, AWS_EXPIRY)
|
AWS_EXPIRY, AWS_EXPIRY)
|
||||||
}
|
}
|
||||||
|
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
|
||||||
STATIC_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
|
|
||||||
# END STORAGE CONFIGURATION
|
# END STORAGE CONFIGURATION
|
||||||
|
|
||||||
# EMAIL
|
# EMAIL
|
||||||
|
@ -130,3 +127,8 @@ class Production(Common):
|
||||||
# END CACHING
|
# END CACHING
|
||||||
|
|
||||||
# Your production stuff: Below this line define 3rd party library settings
|
# Your production stuff: Below this line define 3rd party library settings
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def post_setup(cls):
|
||||||
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
|
||||||
|
cls.STATIC_URL = 'https://s3.amazonaws.com/%s/' % cls.AWS_STORAGE_BUCKET_NAME
|
||||||
|
|
Loading…
Reference in New Issue
Block a user