Basic template
This commit is contained in:
parent
bd63ae9a4d
commit
6bceef1664
9 changed files with 66 additions and 0 deletions
13
app/__init__.py
Normal file
13
app/__init__.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# Configuration of application, see configuration.py, choose one and uncomment.
|
||||
# app.config.from_object('configuration.ProductionConfig')
|
||||
app.config.from_object("app.configuration.DevelopmentConfig")
|
||||
# app.config.from_object('configuration.TestingConfig')
|
||||
|
||||
db = SQLAlchemy(app) # flask-sqlalchemy
|
||||
|
||||
from app import views, models
|
||||
Loading…
Add table
Add a link
Reference in a new issue