You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amphora-wiki/src/app.py

23 lines
435 B

5 years ago
from flask import Flask, flash, make_response, render_template, request, redirect, abort
import content as con_gen
import config
app = Flask(__name__)
@app.errorhandler(404)
def page_not_found(e):
return render_template('error.html', title=config.TITLE, errorcode='404', style=config.STYLE), 404
@app.route('/')
@app.route('/index.html')
def index():
return 'ok'
if __name__ == '__main__':
app.run(host='0.0.0.0')