2013-01-24 00:01:42 +01:00
|
|
|
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
|
2013-01-24 00:01:42 +01:00
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://accountant:accountant@localhost/accountant'
|
|
|
|
app.config['SQLALCHEMY_RECORD_QUERIES'] = True
|
|
|
|
|
|
|
|
db = SQLAlchemy(app)
|
|
|
|
|