skip to Main Content
[[enter image description here[enter image description hereenter image description here](https://phpout.com/wp-content/uploads/2023/06/0nTtB-jpg.webp)](https://phpout.com/wp-content/uploads/2023/06/I92O5-jpg.webp)](https://phpout.com/wp-content/uploads/2023/06/J58gG-jpg.webp)
I ran the program but it shows error 500 and GET error and syntax endblock error. I am using flask.

I tried for making a simple program in the webpage

2

Answers


  1. remove the space in entry.html between { and %. it should be {% block body %}. try it.

    A similar question for your reference

    How to ask a question

    Login or Signup to reply.
  2. Try to make your Jinja template code more neat way. I can see your {% block %} code has redundant spaces. You can fix this as below for instance.

    {% block body %}
    
    <-- Contents -->
    
    {% endblock %}
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search