import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_mail import Mail, Message


app = Flask(__name__)

#load the default settings
app.config.from_pyfile("../config/config.py")



db = SQLAlchemy(app)
mail = Mail(app)

print db

import globe.models
import globe.views

import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_mail import Mail, Message


app = Flask(__name__)

#load the default settings
app.config.from_pyfile("../config/config.py")
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']


db = SQLAlchemy(app)
mail = Mail(app)

print db

import globe.models
import globe.views

fix db_url issues