Lol did not test this
This commit is contained in:
parent
258a7ab992
commit
cf9fcfbad3
2 changed files with 15 additions and 40 deletions
|
@ -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')
|
15
app/foodput.py
Normal file
15
app/foodput.py
Normal file
|
@ -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')
|
Loading…
Reference in a new issue