from flask import Flask
from config import config

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

  from .aflafrettir import aflafrettir as afla_blueprint
  app.register_blueprint(afla_blueprint)

  return app

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

from config import config

bootstrap = Bootstrap()

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

  bootstrap.init_app(app)

  from .aflafrettir import aflafrettir as afla_blueprint
  app.register_blueprint(afla_blueprint)

  return app

Add flask-bootstrap to the mix
Add flask-bootstrap to the mix

  from flask import Flask
+ from flask.ext.bootstrap import Bootstrap
+ 
  from config import config
+ 
+ bootstrap = Bootstrap()
  
  def create_app(config_name):
    app = Flask(__name__)
    app.config.from_object(config[config_name])
+ 
+   bootstrap.init_app(app)
  
    from .aflafrettir import aflafrettir as afla_blueprint
    app.register_blueprint(afla_blueprint)
  
    return app
  
Add flask-bootstrap to the mix
## Code Before:
from flask import Flask
from config import config

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

  from .aflafrettir import aflafrettir as afla_blueprint
  app.register_blueprint(afla_blueprint)

  return app

## Instruction:
Add flask-bootstrap to the mix
## Code After:
from flask import Flask
from flask.ext.bootstrap import Bootstrap

from config import config

bootstrap = Bootstrap()

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

  bootstrap.init_app(app)

  from .aflafrettir import aflafrettir as afla_blueprint
  app.register_blueprint(afla_blueprint)

  return app
