I successfully deployed the demo web app that comes with Jython. It uses modjy which is a Jython WSGI gateway. I’m now trying to hook modjy to my Flask app. I get a handler not defined error.
The full traceback is here: http://pastie.org/2810227
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two different ways you can specify an application to modjy:
For the first method simply create a file that imports your Flask app object.
Then in your web.xml set the proper init-param:
For the second method you can use the modjy convention of defining application.py in the servlet context root with a single handler method that invokes the Flask WSGI app: