[Answer]-Code 404 when fetching image in Django template

1👍

I have also faced this problem but it worked when I used hard coded URLs like this

    <img src="/static/images/background.png" />

And moreover use forward slash

👤pyofey

0👍

Have you tried forward slashes for the image paths in the {% static %} tags?

Update: check the syntax of your static tags: use single quotes for the filename inside the tag and fix the incorrect extra double quote at the end of each img tag

Leave a comment