Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid block tag: expected 'elif', 'else' or 'endif'

I don't understand the error. It complains for endif while it is there.

{% if pdf_enable %}
    {% download_url request.get_full_path "Download as Excel" %}
{% endif %}

Am I missing something?

like image 762
Abhilash Nanda Avatar asked Jun 23 '13 13:06

Abhilash Nanda


1 Answers

You need to load the custom template tag set containing the download_url tag.

For example, if the download_url tag was in a module called download_tags, you would add the following to your template.

{% load download_tags %}
like image 107
Alasdair Avatar answered Sep 20 '22 14:09

Alasdair