title: Django Static image not displaying while using block
body: <p>I am using Django, I am trying to display the image but I am getting the error.</p>
  
  <blockquote>
    <p>Invalid block tag on line 35: 'static', expected 'endblock'. Did you
    forget to register or load this tag?</p>
  </blockquote>
  
  <p>If I added my image directly on index.html page then the image is displaying but when I am using extends and block to display then I am getting the error.</p>
  
  <p><strong>setting.py</strong></p>
  
  <pre><code>STATIC_URL = '/static/'
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR,'static'),
  )
  </code></pre>
  
  <p><strong>home.html</strong></p>
  
  <pre><code>  {% extends 'demo1/index.html' %}
      {% block content %}
      &lt;img src="{% static 'images/web/landing-page.png' %}" alt="Landing Page"&gt;
     {% endblock %}
  </code></pre>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>{% load static from staticfiles %}
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;{% block title%}Home{% endblock %}&lt;/title&gt;
      &lt;link rel="stylesheet" href="{% static 'css/style.css'%}" type="text/css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      {% block content %}
  
       {% endblock %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>