[Fixed]-Can I force Django staticfiles to load hashed filenames locally while Debug=True?

1👍

You can use a workaround. Create a file called local_settings.py and set a different storage. After, in your settings import the module:

try:
    from local_settings import *
except ImportError:
    pass

Keep that file only in the local version of your site.

👤kamy22

Leave a comment