1
You’re hardcoding your static URLs which is breaking when the URL of the page changes since they’re relative.
../../static/images/logo.png
Django provides a {% static %}
tag for generating these URLs. Replace with:
{% static 'images/logo.png' %}
At /post/new/
, your relative static URL resolves to /static/images/logo.png
, but on your edit pages, it’s resolving to /post/static/images/logo.png
.
Source:stackexchange.com