From cf9fcfbad3a7f815d03651bbd1e8bf6c7e27601d Mon Sep 17 00:00:00 2001 From: Feliciaan De Palmenaer Date: Thu, 26 Mar 2015 21:45:27 +0100 Subject: [PATCH] Lol did not test this --- app/FoodBot.py | 40 ---------------------------------------- app/foodput.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 40 deletions(-) delete mode 100644 app/FoodBot.py create mode 100644 app/foodput.py diff --git a/app/FoodBot.py b/app/FoodBot.py deleted file mode 100644 index 6996bf7..0000000 --- a/app/FoodBot.py +++ /dev/null @@ -1,40 +0,0 @@ -# import sqlite3 -from flask import Flask, request, render_template - -# Config -DATABASE = '/db/foodbot.db' -DEBUG = True -SECRET_KEY = 'development key' -USERNAME = 'admin' -PASSWORD = 'tetten' - -app = Flask(__name__) -app.config.from_object(__name__) - - -@app.route('/') -def home(): - return render_template('home.html') - - -@app.route('/about/') -def about(): - return render_template('about.html') - - -@app.route('/stats/') -def stats(): - return render_template('stats.html') - - -@app.route('/login/', methods=['GET', 'POST']) -def login(): - if request.method == 'POST': - pass - else: - return render_template('login.html') - - -if __name__ == '__main__': - app.run(debug=True) - # app.run(host='0.0.0.0') \ No newline at end of file diff --git a/app/foodput.py b/app/foodput.py new file mode 100644 index 0000000..bc1a230 --- /dev/null +++ b/app/foodput.py @@ -0,0 +1,15 @@ +from app import app, db + +from admin import admin +from login import login_manager +from models import * +from utils import start_process +from views import * + + +if __name__ == '__main__': + app.run() + +if __name__ == '__main__': + app.run(debug=True) + # app.run(host='0.0.0.0')