blob: fa4720372e7e338eb78c6d924d6116cae03c60c1 (
plain) (
tree)
|
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 17 09:38:19 2021
@author: sveter
"""
# app.py
from flask import Flask
# from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///justice.db'
app.config["SQLALCHEMY_ECHO"] = False
app.debug = False
# HIDE THIS BEFORE DEPLOYING TO PRODUCTION :)
app.secret_key = "123456"
# toolbar = DebugToolbarExtension(app)
db = SQLAlchemy(app)
|