goa/skel/main.py
branchstable
changeset 2172 cf8f9180e63e
parent 1977 606923dff11b
child 2476 1294a6bdf3bf
equal deleted inserted replaced
2125:19861294506f 2172:cf8f9180e63e
    39 custom.postinit(vreg)
    39 custom.postinit(vreg)
    40 
    40 
    41 from cubicweb.wsgi.handler import CubicWebWSGIApplication
    41 from cubicweb.wsgi.handler import CubicWebWSGIApplication
    42 application = CubicWebWSGIApplication(config, vreg=vreg)
    42 application = CubicWebWSGIApplication(config, vreg=vreg)
    43 
    43 
    44 # main function so this handler module is cached 
    44 # main function so this handler module is cached
    45 def main():
    45 def main():
    46     from wsgiref.handlers import CGIHandler
    46     from wsgiref.handlers import CGIHandler
    47     CGIHandler().run(application)
    47     CGIHandler().run(application)
    48 
    48 
    49 if __name__ == "__main__":
    49 if __name__ == "__main__":