import config from bitlyhelper import BitlyHelper from flask import Flask, redirect, render_template, request, url_for from flask_login import LoginManager, current_user, login_required, login_user, logout_user from forms import CreateTableForm, LoginForm, RegistrationForm from passwordhelper import PasswordHelper from user import User if config.test: from mockdbhelper import MockDBHelper as DBHelper else: from dbhelper import DBHelper DB = DBHelper() PH = PasswordHelper() BH = BitlyHelper() app = Flask(__name__) login_manager = LoginManager(app) app.secret_key = "oEQROqSPVzml95gvOtZLAEWPnWrK1N5kQYpBqVQF6U7Ma9hQQbDnF+x3xO696UMJJEEs/WWUZpCXVRqwPJWsgxL75FnUBmRWJLx" @app.route("/") def home(): registrationform = RegistrationForm() return render_template("home.html", loginform=LoginForm(), registrationform=registrationform)