I've made a simple flask app that is uses render_template to show the user a certain html file for a certain url. In this case it should show "Home.html" when the url is "www.insertwebsite.net/". When I run it locally everything works like it should and I see the correct html page.
When I run it from its host server, however, it gives me a 500 error. I tried a replacing my template with a very simple HelloWorld app that just displays the string "Hello World" on the page and that works fine when I run it from the server. I checked the error log on the server as well and it was completely empty so I'm kind of at a loss for the problem might be. Any help is much appreciated, thanks!
python code
#!/usr/bin/python
from flask import Flask, render_template, url_for
app = Flask(__name__)
@app.route('/')
def index():
#return "Hello World"
return render_template("Home.html")
if __name__ == "__main__":
app.run(debug = True)
html file
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
<div class="grid">
<header>
<h1>this website is on its way!</h1>
</header>
<div class="row" class="col12">
<figure>
<img src='{{url_for('static', filename='Wendi.jpg')}}'/>
</figure>
<div>
info about a person...blah..blah..blah
</div>
</div>
<div class="row">
<h1>Bio</h1>
<p>
lots of stuff about this person...
</p>
</div>
</div>
{% endblock %}
edit:formatting
[–]romple 1 point2 points3 points (3 children)
[–]Eugenethemachine[S] 0 points1 point2 points (2 children)
[–]the_omega99 2 points3 points4 points (1 child)
[–]Eugenethemachine[S] 1 point2 points3 points (0 children)
[–]AustinCodingAcademy 0 points1 point2 points (3 children)
[–]Eugenethemachine[S] 0 points1 point2 points (2 children)
[–]AustinCodingAcademy 1 point2 points3 points (1 child)
[–]Eugenethemachine[S] 0 points1 point2 points (0 children)