Can't use AWS_STORAGE_BUCKET_NAME until post_setup.

This commit is contained in:
Jeff Johnson 2015-03-24 17:04:01 -04:00
parent ce5b7a1f59
commit 6afdef61b8
2 changed files with 6 additions and 3 deletions

View File

@ -38,6 +38,7 @@ Andy Rose
Andrew Mikhnevich / @zcho
Kevin Ndung'u / @kevgathuku
Kaveh / @ka7eh
Jeff Johnson / @jeffcjohnson
* Possesses commit rights

View File

@ -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