I am building a website using a flash structure , and now I am facing an error that I do not understand. For the simple base.html file that I pasted below, I get tt TemplateSyntaxError: expected token 'end of statement block', got 'session', although I explicitly end the if with {% endif %}.
TemplateSyntaxError: expected token 'end of statement block', got 'session'
{% endif %}
Does anyone know what I'm doing wrong here?
<!doctype html> <div class="page"> <div class="metanav"> {% if not in session.logged_in %} aa {% endif %} </div> </div>
In the next line, the code does not have an operand for the operator not in.
not in
{% if ?? not in session.logged_in %} ^^
Or you can keep in mind the statement not:
not
{% if not session.logged_in %}
Source: https://habr.com/ru/post/1525037/More articles:Предотвращение публикации sbt автоматически агрегированного корневого проекта - scalaExcluding a project from an sbt multi project from a publication (sbt-gpg) - scalaInvalid command 'Mutex' - svnDifference between xs: redefine and xs: override in XML Schema 1.1 - xmlScala unpickling from string - scalaprotagonist schedule clock.js example - node.jsSecond-order differential equation using the C ++ library Boost odeint - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1525040/convert-rows-to-string-in-postgresql&usg=ALkJrhgPJUsMt5IYZ936RXeGd_3WqI3AUQinput target value using jquery - jqueryDateTime does not exist in the current context - c #All Articles