import os

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
if os.environ['DEBUG']:
    app.config['DEBUG'] == True
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ["DATABASE_URL"]

db = SQLAlchemy(app)

from grum.api import api
app.register_blueprint(api, url_prefix='/api')

from grum import views, models
import os

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
if os.environ['DEBUG']:
    app.config['DEBUG'] = True
    app.debug=True
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ["DATABASE_URL"]

db = SQLAlchemy(app)

from grum.api import api
app.register_blueprint(api, url_prefix='/api')

from grum import views, models
Update DEBUG messages