mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-05 04:30:16 +03:00
Merge 6afdef61b8
into ce5b7a1f59
This commit is contained in:
commit
ac34a7c847
|
@ -38,6 +38,7 @@ Andy Rose
|
|||
Andrew Mikhnevich / @zcho
|
||||
Kevin Ndung'u / @kevgathuku
|
||||
Kaveh / @ka7eh
|
||||
Jeff Johnson / @jeffcjohnson
|
||||
|
||||
* Possesses commit rights
|
||||
|
||||
|
|
|
@ -92,9 +92,6 @@ class Production(Common):
|
|||
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (
|
||||
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
|
||||
|
||||
# EMAIL
|
||||
|
@ -130,3 +127,8 @@ class Production(Common):
|
|||
# END CACHING
|
||||
|
||||
# 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