Python flask.ext.script.Server() Examples

The following are 1 code examples of flask.ext.script.Server(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module flask.ext.script , or try the search function .
Example #1
Source File: manager.py    From JmilkFan-s-Blog with Apache License 2.0 6 votes vote down vote up
def make_shell_context():
    """Create a python CLI.

    return: Default import object
    type: `Dict`
    """
    return dict(app=app,
                db=models.db,
                User=models.User,
                Post=models.Post,
                Comment=models.Comment,
                Tag=models.Tag,
                Role=models.Role,
                BrowseVolume=models.BrowseVolume,
                Reminder=models.Reminder,
                Server=Server)