12 lines
358 B
Python
12 lines
358 B
Python
from flask import Flask, render_template, redirect, url_for, request, flash
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
app = Flask(__name__)
|
|
app.config['SECRET_KEY'] = 'secret_key'
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
|
|
db = SQLAlchemy(app)
|
|
from models import User, SARCall, SARCategory
|
|
|
|
if __name__ == '__main__':
|
|
db.create_all()
|