Marin/app.py

20 lines
314 B
Python

# Fichier principal
from flask import Flask, escape, request, url_for
import pages
app = Flask(__name__)
@app.route('/')
@app.route('/home')
@app.route('/home/')
def main():
return pages.main()
@app.errorhandler(404)
def error(e):
return pages.error()
if __name__=="__main__":
app.run(debug=True)