Ejemplo n.º 1
0
def run_appengine_app():
  """docstring for run_appengine_app"""
  
  from google.appengine.ext.webapp.util import run_wsgi_app
  from google.appengine.ext import webapp
  from chrisw.core import handlers
  
  application = webapp.WSGIApplication(handlers.get_handler_bindings(),\
                                       debug=True)
  run_wsgi_app(application)
  
  
    
Ejemplo n.º 2
0
def main():
  sys.path += settings.LIB_DIRS
  
  # patchs for django 0.96, should be remove for 1.1
  from django.conf import settings as djsettings
  djsettings.TEMPLATE_DIRS += settings.TEMPLATE_DIRS
  djsettings.INSTALLED_APPS += settings.INSTALLED_APPS
  djsettings.LANGUAGE_CODE = settings.LANGUAGE_CODE
  djsettings.LOCALE_PATHS += settings.LOCALE_PATHS
  
  import home, group
  
  from chrisw.core import handlers
  from chrisw.web.util import register_app, register_handler_classes
  register_app(['group','home'])
  
  handler_path_mappings = home.apps + group.apps
  register_handler_classes(handler_path_mappings)
  
  application = webapp.WSGIApplication( handler_path_mappings + \
                                        handlers.get_handler_bindings(), 
                                        debug=settings.DEBUG)
  # logging.debug(handlers.get_handler_bindings())
  util.run_wsgi_app(application)
Ejemplo n.º 3
0
def main():
    sys.path += settings.LIB_DIRS

    # patchs for django 0.96, should be remove for 1.1
    from django.conf import settings as djsettings
    djsettings.TEMPLATE_DIRS += settings.TEMPLATE_DIRS
    djsettings.INSTALLED_APPS += settings.INSTALLED_APPS
    djsettings.LANGUAGE_CODE = settings.LANGUAGE_CODE
    djsettings.LOCALE_PATHS += settings.LOCALE_PATHS

    import home, group

    from chrisw.core import handlers
    from chrisw.web.util import register_app, register_handler_classes
    register_app(['group', 'home'])

    handler_path_mappings = home.apps + group.apps
    register_handler_classes(handler_path_mappings)

    application = webapp.WSGIApplication( handler_path_mappings + \
                                          handlers.get_handler_bindings(),
                                          debug=settings.DEBUG)
    # logging.debug(handlers.get_handler_bindings())
    util.run_wsgi_app(application)