html - Django template: Invalid block tag: 'endif', expected 'empty' or 'endfor' -


i getting error saying template not correct.

the error goes like: invalid block tag: 'endif', expected 'empty' or 'endfor'

my code here, bug on last line. part not correct?

{% if entries %} {% entry in entries %} <section class="no-padding" id="portfolio">     <div class="container-fluid">         (% if entry.scammer_name %}         <div class="row no-gutter result-wrapper control-group">             <div class="col-lg-3 result-label">                 <label class="control-group result-padding">                     suspect's name:                 </label>             </div>                 <div class="col-lg-9 result">                 <label class="control-group result-padding light-font">                     {{ entry.scammer_name }}                 </label>             </div>              </div>         {% endif %}     </div> </section> {% endfor %} {% endif %} 

add {% endfor %}{% endif %} last line of code.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -