Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 756 Bytes
# -*- encoding: utf-8 -*-
License: MIT
Copyright (c) 2019 - present
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
db = SQLAlchemy (app) # flask-sqlalchemy
bc = Bcrypt (app) # flask-bcrypt
lm = LoginManager( ) # flask-loginmanager
lm.init_app(app) # init the login manager
# Setup database
def initialize_database():
# Import routing, models and Start the App
from app import views, models
You can’t perform that action at this time.