[Answered ]-Django static files relative path does not work

2👍

Make sure your STATIC_URL has a / at the beginning:

STATIC_URL = '/static/'

Otherwise, URL will be like <img src="static/thing.png" /> which can work on first level (since it will search from the root) but not when you are in subdirectories.
Be aware the serve method only work in DEBUG mode.

Leave a comment