I'm developing my first app with Flask and deploying to Heroku. Below is the error message I get locally and on Heroku. Also can be seen here: http://warm-beyond-4111.herokuapp.com/
jinja2.exceptions.TemplateNotFound TemplateNotFound: home.html
Longer version of the error here:
File "/app/.heroku/python/lib/python2.7/site-packages/flask/templating.py",
line 61, in get_source raise TemplateNotFound(template)
TemplateNotFound: home.html
Here's an overview of the app:
Directory: /helloflask
Procfile:
web: python run.py
requirements.txt
Flask==0.9
Jinja2==2.6
Werkzeug==0.8.3
distribute==0.6.28
wsgiref==0.1.2
run.py
import os
from helloflask import app
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=True)
Directory: /helloflask/helloflask
__init__.py
from flask import Flask, render_template
app = Flask(__name__)
import helloflask.views
views.py
from helloflask import app
from flask import Flask, render_template
@app.route('/')
def home():
return render_template('home.html')
Directory: /helloflask/templates
home.html = a standard HTML file
Directory: /helloflask/static/css
main.css = standard CSS file
I've scoured the Interwebs for an answer with no luck. Anyone seen this before?