Beispiel #1
0
def runserver():
    """Runs the Django development server"""

    print green("Running the development webserver...")
    denv = _utils.dot_env()
    host = denv.get('SERVER_HOST', '0.0.0.0')
    port = denv.get('PORT', '8000')
    _utils.manage_py('runserver %s:%s' % (host, port))
Beispiel #2
0
def print_env():
    """Print the local .env file contents"""
    denv = _utils.dot_env()
    import pprint

    pprint.pprint(denv)