{% extends "layout.html" %}

{% block title %}
{% endblock %}

{% block main %}
    <form action="/quote" method="post">
        <div class="form-group">
            <input autocomplete="off" autofocus class="form-control" name="quote" placeholder="Symbol" type="text">
        <button class="btn btn-primary" type="submit">Quote</button>
{% endblock %}

When I run this code, I consistently get 500 internal server error. Particularly, this error shows up (jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'endblock'.) and (INFO:werkzeug: - - [23/Jul/2020 08:15:16] "POST /quote HTTP/1.0" 500 -) Is there someone who can help me? The error shows up in quote.html which is the code that i've included above.

  • If the POST call is shown in the traceback, suspect the problem is in the form that the quote route calls in application.py on a POST method. The quote.html as posted here does not generate errors. – DinoCoderSaurus Jul 23 '20 at 11:23
  • Walking that back; please edit the traceback and the quote function into the question for broader context. – DinoCoderSaurus Jul 23 '20 at 14:29
  • Hi I actually solved the issue, it was related to the file quoted and it was a syntax error. Thanks! – catnamedboo Jul 23 '20 at 16:32

You must log in to answer this question.

Browse other questions tagged .