Beispiel #1
0
    render_template
import random

# MODULES
from modules.security import Security
from modules.user import User
from modules.database import Database
from modules.garage import Garage
from modules.settings import Settings


# GLOBAL VARIABES
DEBUG = True  # This needs to be commented out in master for security.

# Master login
settings = Settings()
USERNAME = settings.username()
PASSWORD = settings.password()

# Secret Key for sessions
SECRET_KEY = str(random.random())

# Init App
app = Flask(__name__)
app.config.from_object(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///./tmp/database.db'


@app.route('/', methods=['GET'])
# GET - Shows main page
# POST - None