Trying to run a static html with FLask. I keep getting the error: TemplateNotFound: lucky.html
Ive examined another post similar at: Flask Template Not found however it did not help my problem. I have tried to move the templates directory around containing the lucky.html file with no luck
File path:
C:\Python27\flask_practice\templates
lucky.html
lucky.py
Python:
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def lucky():
return render_template('lucky.html')
if __name__ == '__main__':
app.run()
Html:
<html>
<body>
<p> Hello there </p>
<p> Feeling lucky </p>
<p> 7 </p>
</body>
</html>