Browse Source

Template bugfix; FCGI adjustments.

master
Ben Kurtovic 8 years ago
parent
commit
db8e0a8f64
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      app.fcgi
  2. +1
    -1
      templates/index.mako

app.py → app.fcgi View File

@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /data/project/earwig-dev/env/bin/python
# -*- coding: utf-8 -*-

from flask import Flask
@@ -19,4 +19,5 @@ def index():
return render_template("index.mako", result=result)

if __name__ == '__main__':
app.run()
from flup.server.fcgi import WSGIServer
WSGIServer(myapp).run()

+ 1
- 1
templates/index.mako View File

@@ -12,7 +12,7 @@
<div id="error">
% if result["error"] == "no page":
<p>Can't find the given page: <a href="${result['page'].url}">${result["page"].title | h}</a>.</p>
% else
% else:
An unknown error occurred.
% endif
</div>


Loading…
Cancel
Save