Skip to content

Commit

Permalink
9 - AWS S3 for Static Files
Browse files Browse the repository at this point in the history
  • Loading branch information
codingforentrepreneurs committed Oct 19, 2017
1 parent 9ecf893 commit 90044ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ecommerce/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# third party
'storages',

#our apps
'accounts',
Expand Down Expand Up @@ -172,4 +174,3 @@




4 changes: 4 additions & 0 deletions src/ecommerce/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# third party
'storages',

#our apps
'accounts',
Expand Down Expand Up @@ -158,6 +160,8 @@
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static_cdn", "media_root")

from ecommerce.aws.conf import *


CORS_REPLACE_HTTPS_REFERER = False
HOST_SCHEME = "http://"
Expand Down
5 changes: 5 additions & 0 deletions src/ecommerce/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# third party
'storages',

#our apps
'accounts',
Expand Down Expand Up @@ -164,6 +166,9 @@
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static_cdn", "media_root")

from ecommerce.aws.conf import *


# https://kirr.co/vklau5

# Let's Encrypt ssl/tls https
Expand Down

0 comments on commit 90044ca

Please sign in to comment.