2015-02-05 01:02:32 +01:00
|
|
|
#!/usr/bin/python3
|
2015-02-05 22:17:33 +01:00
|
|
|
#/* vim:set ts=2 set noexpandtab */
|
|
|
|
from flask import Flask, render_template, url_for
|
|
|
|
app = Flask(__name__)
|
2015-02-05 01:02:32 +01:00
|
|
|
|
2015-02-05 22:17:33 +01:00
|
|
|
@app.route("/")
|
|
|
|
def index():
|
|
|
|
return render_template("search.html")
|
|
|
|
|
|
|
|
@app.route("/categorys")
|
|
|
|
def categorys():
|
|
|
|
return render_template("categorys.html")
|
|
|
|
|
2015-02-05 22:38:39 +01:00
|
|
|
@app.route("/create")
|
|
|
|
def create():
|
|
|
|
return render_template("create.html")
|
|
|
|
|
2015-02-05 22:17:33 +01:00
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(debug=True)
|