from flask import Flask
from flask.ext.bower import Bower
from flask.ext.pymongo import PyMongo

from config import Config

app = Flask(__name__)
app.config.from_object(Config)

# Register bower
Bower(app)

# Create mongodb client
mongo = PyMongo(app)

from .report.views import index, report
from flask import Flask
from flask_bower import Bower
from flask_pymongo import PyMongo

from config import Config

app = Flask(__name__)
app.config.from_object(Config)

# Register bower
Bower(app)

# Create mongodb client
mongo = PyMongo(app)

from .report.views import index, report
Resolve the deprecated flask ext imports
Resolve the deprecated flask ext imports

  from flask import Flask
- from flask.ext.bower import Bower
+ from flask_bower import Bower
- from flask.ext.pymongo import PyMongo
+ from flask_pymongo import PyMongo
  
  from config import Config
  
  app = Flask(__name__)
  app.config.from_object(Config)
  
  # Register bower
  Bower(app)
  
  # Create mongodb client
  mongo = PyMongo(app)
  
  from .report.views import index, report
Resolve the deprecated flask ext imports
## Code Before:
from flask import Flask
from flask.ext.bower import Bower
from flask.ext.pymongo import PyMongo

from config import Config

app = Flask(__name__)
app.config.from_object(Config)

# Register bower
Bower(app)

# Create mongodb client
mongo = PyMongo(app)

from .report.views import index, report
## Instruction:
Resolve the deprecated flask ext imports
## Code After:
from flask import Flask
from flask_bower import Bower
from flask_pymongo import PyMongo

from config import Config

app = Flask(__name__)
app.config.from_object(Config)

# Register bower
Bower(app)

# Create mongodb client
mongo = PyMongo(app)

from .report.views import index, report