27 lines
554 B
Python
27 lines
554 B
Python
from flask import Flask
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_migrate import Migrate
|
|
from flask_login import LoginManager
|
|
|
|
|
|
app = Flask(__name__)
|
|
app.config['SECRET_KEY'] = 'secret_key'
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
|
|
db = SQLAlchemy(app)
|
|
migrate = Migrate(app,db)
|
|
login_manager = LoginManager(app)
|
|
|
|
import models
|
|
import admin
|
|
import login
|
|
import sar_calls
|
|
import dashboard
|
|
|
|
@app.route('/')
|
|
def hello_world(): # put application's code here
|
|
return 'Hello World!'
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run()
|