How to serve static files from the root URL?

Hello. I have a compiled angular application, which I can serve properly at example.com.static/files.js and it works. However, when I change STATIC_URL to “” or “/”, I get a django error:

django.core.exceptions.ImproperlyConfigured: The MEDIA_URL and STATIC_URL settings must have different values

I’m not using the MEDIA_URL, so any ideas how I can accomplish this? Thanks.

Maybe set MEDIA_URL to something else may work?

One thing important to note is that django won’t serve static files when DEBUG = False.