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')