[Answered ]-The django + nginx can't load staticfiles

2👍

In django template tags look like this {% tag %} Please note that there is no space between { and %.

So instead of

{ % load staticfiles % }
<img src="{ % static "img/ocen.jpg" % }" alt="show picture">

you should do:

{% load staticfiles %}
<img src="{% static 'img/ocen.jpg' %}" alt="show picture">    

Leave a comment