S3 Static & Media Files for Django (more problems)
Trying to setup S3 for static files for my django project but only in Production mode. In local (development) mode I want to use local files. From one of Coding For Entrepreneurs django videos I got this python snippet to support a production environment and a local environment. settings/__init__.py from .base import * from .production import * try: from .local import * except: pass I followed the steps from the C oding For Entrepreneurs blog. I did steps #4 , #5 , #6 and I assume step #7 means to put the from <your-project>.aws.conf import * Into the settings/production.py ? And to leave it out of the settings/local.py ? Using the above settings/__init__.py on my local (development) environment the {% static %} template tag is replaced by https://s3.us-east-2.amazonaws.com/ S3 bucket url If I comment out the from .production import * from settings/init.py from .base import * #from .production import * try: from .local import * except: pass I get the local.py STATIC...