As Daniel wrote in his answer, you should not use absolute path for any content on your website. This leads to a security concern and to... not working. When the browser sees /absolute/path/img.png, it searches for this path starting at the root of your website. So, this can become /home/userName/Documents/app/absolute/path/img.png, which doesn't exists.
The right way is:
- Read the doc :)
- Add (or use) the settings.STATIC_URL defined un
settings.py
. The default path is the folder static/ in your app folder. - Use
{% load staticfiles %}
and{{ static "relative/path/file.ext" }}
in your template