TemplateSyntaxError Invalid block tag: 'static', expected 'endblock'

Raised by:

django/template/base.py (line 394)

Traceback (most recent call last):
  File "python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
    response = response.render()
  File "python2.7/site-packages/django/template/response.py", line 158, in render
    self.content = self.rendered_content
  File "python2.7/site-packages/django/template/response.py", line 135, in rendered_content
    content = template.render(context, self._request)
  File "python2.7/site-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "python2.7/site-packages/django/template/base.py", line 209, in render
    return self._render(context)
  File "python2.7/site-packages/django/template/base.py", line 201, in _render
    return self.nodelist.render(context)
  File "python2.7/site-packages/django/template/base.py", line 903, in render
    bit = self.render_node(node, context)
  File "python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "python2.7/site-packages/django/template/loader_tags.py", line 113, in render
    compiled_parent = self.get_parent(context)
  File "python2.7/site-packages/django/template/loader_tags.py", line 110, in get_parent
    return context.template.engine.get_template(parent)
  File "python2.7/site-packages/django/template/engine.py", line 167, in get_template
    template, origin = self.find_template(template_name, dirs)
  File "python2.7/site-packages/django/template/engine.py", line 141, in find_template
    source, display_name = loader(name, dirs)
  File "python2.7/site-packages/django/template/loaders/base.py", line 13, in __call__
    return self.load_template(template_name, template_dirs)
  File "python2.7/site-packages/django/template/loaders/base.py", line 23, in load_template
    template = Template(source, origin, template_name, self.engine)
  File "python2.7/site-packages/django/template/base.py", line 190, in __init__
    self.nodelist = engine.compile_string(template_string, origin)
  File "python2.7/site-packages/django/template/engine.py", line 261, in compile_string
    return parser.parse()
  File "python2.7/site-packages/django/template/base.py", line 341, in parse
    compiled_result = compile_func(self, token)
  File "python2.7/site-packages/django/template/loader_tags.py", line 210, in do_extends
    nodelist = parser.parse()
  File "python2.7/site-packages/django/template/base.py", line 341, in parse
    compiled_result = compile_func(self, token)
  File "python2.7/site-packages/django/template/loader_tags.py", line 184, in do_block
    nodelist = parser.parse(('endblock',))
  File "python2.7/site-packages/django/template/base.py", line 339, in parse
    self.invalid_block_tag(token, command, parse_until)
  File "python2.7/site-packages/django/template/base.py", line 394, in invalid_block_tag
    (command, get_text_list(["'%s'" % p for p in parse_until])))
TemplateSyntaxError: Invalid block tag: 'static', expected 'endblock'

How to reproduce

Use the static template tag without loading staticfiles in the template.

How to fix

Load staticfiles on top of your template file.

{% load staticfiles %}