I keep getting a 405 error when attempting to open this page, I probably made a stupid mistake somewhere but haven't been able to see anything that is an error.
@app.route('/AAR', methods=['POST'])
def aar_page():
name = request.form.get('name', False)
comments = request.form.get('comments', False)
log_request(request)
return render_template('aar.html',
the_title = '729th Quartermaster Company',
page_title = 'AAR')
{% extends 'base.html' %}
{% block body %}
<ul class="nav nav-pills" style='background-color: #8C9B3C'>
<li class="nav-item">
<a class="nav-link" href="home" style='color: black;'>Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="roster" style='color: black;'>Roster</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="AAR" style='color: black;'><strong>AAR</strong></a>
</li>
<li class="nav-item">
<a class="nav-link" href="weekend" style='color: black;'>What are we doing next drill?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="links" style='color: black;'>Helpful Links</a>
</li>
</ul>
</div>
<div class='row row-eq-height' style='margin-left: 10%; margin-right: 10%; margin-top: 3%;'>
<div class="col-md-6" style='text-align: center; border: 1px solid black; background-color: whitesmoke; padding: 0; margin-left: 1%;'>
<h2 style="margin-top: 0; color: whitesmoke;">Why submit an AAR?:</h2>
<p>"We're happy to host your free website -- and keep it free -- for as long as you want to keep it running, but you'll need to log in at least once every three months and click the 'Run until 3 months from today' button below. We'll send you an email a week before the site is disabled so that you don't forget to do that."</p>
</div>
<div class="col-md-6" style='text-align: left; border: 1px solid black; background-color: whitesmoke; padding: 0; margin-left: 1%;'>
<h2 style="margin-top: 0; color: whitesmoke; text-align: center;">Submission:</h2>
<div style='padding-left: 3%; padding-right: 3%; padding-bottom: 3%;'>
<form method='POST' action='/AAR'>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" placeholder="Enter rank and name" id="name" name='name'>
</div>
<div class="form-group">
<label for="comments">Comments:</label>
<textarea type="text" class="form-control" placeholder="Enter comments" id="comments" name='comments'></textarea>
</div>
<button type="submit">Submit</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
[formatted by admin]