[Answer]-Using S3 only in production Django

1👍

Assuming you have a .local package locally, try removing the try/except around the .local import and see if any errors are thrown.

Also, if are you setting DEBUG in base as TRUE, and the setting your URLS and storages, and then setting DEBUG to false in .locals, you you need to reset your URLS and storages in .locals.

.locals are imported AFTER your base file has already been imported, so your line:

if not DEBUG:

…evalutes to TRUE during import, sets everything up to use S3.

Leave a comment