accountant/src/app.py

13 lines
310 B
Python
Raw Normal View History

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.orm import sessionmaker
2013-01-24 01:59:42 +01:00
# The app
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://accountant:accountant@localhost/accountant'
app.config['SQLALCHEMY_RECORD_QUERIES'] = True
db = SQLAlchemy(app)