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