stallion
stallion copied to clipboard
Can't locate jinja templates
I installed stallion with pip. From my home directory, I ran the command listed in the README: python -m stallion.main I opened http://localhost:5000/ in my browser. All I saw was "500 internal server error". I killed the process. I re-ran it with -d -v python -m stallion.main -d -v Here's your traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1701, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/stallion/main.py", line 185, in index
return render_template('system_information.html', **data)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/templating.py", line 124, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 758, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 719, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 693, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9_devdev_20120525-py2.7.egg/flask/templating.py", line 61, in get_source
raise TemplateNotFound(template)
TemplateNotFound: system_information.html
You're probably using flask dev version, that's weird, I'll take a look, marking to fix on next milestone, thanks for reporting.
Even though I usually start Stallion with the command stallion -w
, I've tried python -m stallion.main
as well. When I openend http://localhost:5000/ in my browser everything works as expected.
I checked this with Python 2.7.5 (Homebrew version) on OS X Mavericks, using flask 0.10.1