Switched everything to pylon
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
import os
|
||||
|
||||
basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = 'super secret key'
|
||||
#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///scanned.db'
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'scanned.db')
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
app.config.from_object(__name__)
|
||||
from app import views
|
||||
Reference in New Issue
Block a user