Created
May 31, 2013 14:48
-
-
Save DasIch/5685500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from package.db import db | |
app = Flask(__name__) | |
db.init_app(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask.ext.sqlalchemy import SQLAlchemy | |
db = SQLAlchemy() | |
class SomeModel(db.Model): | |
# do someting useful here | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment