'''This module enables command line interface for randompeople app.'''
from flask_script import Manager
from app import create_app, db
from app.models import Room, Member

manager = Manager(create_app)

@manager.shell
def make_shell_context():
    ''''''
    return dict(app=manager.app, db=db, Room=Room, Member=Member)

if __name__ == '__main__':
    manager.run()

'''This module enables command line interface for randompeople app.'''
from flask_script import Manager
from app import create_app, db
from app.models import Room, Member

app = create_app()
manager = Manager(app)

@manager.shell
def make_shell_context():
    ''''''
    return dict(app=app, db=db, Room=Room, Member=Member)

if __name__ == '__main__':
    manager.run()

Add Flask app variable to use with gunicorn
Add Flask app variable to use with gunicorn

  '''This module enables command line interface for randompeople app.'''
  from flask_script import Manager
  from app import create_app, db
  from app.models import Room, Member
  
+ app = create_app()
- manager = Manager(create_app)
+ manager = Manager(app)
  
  @manager.shell
  def make_shell_context():
      ''''''
-     return dict(app=manager.app, db=db, Room=Room, Member=Member)
+     return dict(app=app, db=db, Room=Room, Member=Member)
  
  if __name__ == '__main__':
      manager.run()
  
Add Flask app variable to use with gunicorn
## Code Before:
'''This module enables command line interface for randompeople app.'''
from flask_script import Manager
from app import create_app, db
from app.models import Room, Member

manager = Manager(create_app)

@manager.shell
def make_shell_context():
    ''''''
    return dict(app=manager.app, db=db, Room=Room, Member=Member)

if __name__ == '__main__':
    manager.run()

## Instruction:
Add Flask app variable to use with gunicorn
## Code After:
'''This module enables command line interface for randompeople app.'''
from flask_script import Manager
from app import create_app, db
from app.models import Room, Member

app = create_app()
manager = Manager(app)

@manager.shell
def make_shell_context():
    ''''''
    return dict(app=app, db=db, Room=Room, Member=Member)

if __name__ == '__main__':
    manager.run()
