Adds an S3 storage backend
This commit is contained in:
parent
0a88ccce18
commit
3d1a38f4c9
2 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,14 @@ STATICFILES_FINDERS = [
|
||||||
"compressor.finders.CompressorFinder",
|
"compressor.finders.CompressorFinder",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Amazon S3 setup
|
||||||
|
DEFAULT_FILE_STORAGE = os.environ.get("DJANGO_DEFAULT_FILE_STORAGE", 'django.core.files.storage.FileSystemStorage') # noqa
|
||||||
|
AWS_ACCESS_KEY_ID = os.environ.get("DJANGO_AWS_ACCESS_KEY_ID", None)
|
||||||
|
AWS_SECRET_ACCESS_KEY = os.environ.get("DJANGO_AWS_SECRET_ACCESS_KEY", None)
|
||||||
|
AWS_STORAGE_BUCKET_NAME = os.environ.get("DJANGO_AWS_STORAGE_BUCKET_NAME", None)
|
||||||
|
|
||||||
|
|
||||||
# Make this unique, and don't share it with anybody.
|
# Make this unique, and don't share it with anybody.
|
||||||
SECRET_KEY = "6r&z0i#!k-thu4nv^zzx!f$fbp(i5mq_^%%@ihu_qxxotl_"
|
SECRET_KEY = "6r&z0i#!k-thu4nv^zzx!f$fbp(i5mq_^%%@ihu_qxxotl_"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Django>=1.11,<1.12
|
Django>=1.11,<1.12
|
||||||
|
boto3==1.4.6
|
||||||
pinax-theme-bootstrap==7.3.0
|
pinax-theme-bootstrap==7.3.0
|
||||||
django-user-accounts==1.3.1
|
django-user-accounts==1.3.1
|
||||||
metron==1.3.7
|
metron==1.3.7
|
||||||
|
@ -8,6 +9,7 @@ dj-database-url==0.4.0
|
||||||
pinax-pages==0.4.2
|
pinax-pages==0.4.2
|
||||||
pinax-boxes==2.1.2
|
pinax-boxes==2.1.2
|
||||||
django-ssl-redirect==2.0
|
django-ssl-redirect==2.0
|
||||||
|
django-storages==1.6.5
|
||||||
django-libsass==0.7
|
django-libsass==0.7
|
||||||
django-markdown-deux==1.0.5
|
django-markdown-deux==1.0.5
|
||||||
django-sitetree==1.8.0
|
django-sitetree==1.8.0
|
||||||
|
|
Loading…
Reference in a new issue