Skip to content

Instantly share code, notes, and snippets.

@DasIch
Created May 31, 2013 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DasIch/5685500 to your computer and use it in GitHub Desktop.
Save DasIch/5685500 to your computer and use it in GitHub Desktop.
from flask import Flask
from package.db import db
app = Flask(__name__)
db.init_app(app)
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