Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/d/j/django-hotsauce-0.5.0/examples/demo.py   Django-hotsauce(Download)
from notmm.utils.django_settings import SettingsProxy
from notmm.utils.configparse import has_conf, loadconf
from notmm.utils.http import get_bind_addr, HTTPServer
class ConfigurationError(Exception):
    app_conf = loadconf('development.ini')
    # Get the host/port using get_bind_addr.
    bind_addr = get_bind_addr(app_conf, 'httpserver')
    raise ConfigurationError('development.ini not found!')

src/d/j/django-hotsauce-0.5.0/examples/moinmoin_server.py   Django-hotsauce(Download)
import wikiapp
from notmm.utils.http import daemonize, get_bind_addr
# Add the wikiconfig module in sys.path if not present
    # get the default inet address to bind the wsgi server to
    bind_addr = get_bind_addr(wikiapp.global_conf)
    # start the wsgi server

src/d/j/django-hotsauce-0.5.0/tools/httpserver.py   Django-hotsauce(Download)
    import argparse
from notmm.utils.http import HTTPServer, get_bind_addr, daemonize
from notmm.utils.configparse import loadconf
from notmm.utils.pastecompat import eval_import
    # A INET4 address to bind to for listening for HTTP connections -> (host, port)
    bind_addr = get_bind_addr(global_conf)
    # Use command line settings module if set