{% static 'file' %} should fail if file not present
I am currently working on a Django application. When I use {% static 'file' %}
within my template everything works great locally and on production as well, when file
exists.
When file
does not exist, the error only occurs in production; collectstatic
also seems to ignore that the file does not exist. I get a 500 when trying to get the start page.
I would like this error to also occur in development mode. Did I misconfigure Django and it would normally do that? Or can it at least be configured that way?
Just giving me the error page in development mode with the incorrect file path would be perfect.