Lol did not test this

This commit is contained in:
Feliciaan De Palmenaer 2015-03-26 21:45:27 +01:00
parent 258a7ab992
commit cf9fcfbad3
2 changed files with 15 additions and 40 deletions

View file

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