from flask import Flask 
from flask.ext.bootstrap import Bootstrap
from config import config 

bootstrap = Bootstrap()
moment = Moment()

def create_app(config_name):
	app = Flask(__name__)
	app.config.from_object(config[config_name])
	config[config_name].init_app(app)

	bootstrap.init_app(app)
	moment.init_app(app)

	return app 
add __init__.py, initialized bootstrap extension