I want to use webapp2, which is the default for Python 2.7, under Python 2.5. Is this possible? How?
Share
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.
Webapp2 is part of the Python 2.7 runtime but it’s also a library compatible with Python 2.5 that you can download and use in your project like many other libraries.
Indeed, as noted in the documentation, Webapp2 can be used outside of GAE independently of the App Engine SDK.
To use it in your GAE Python 2.5 project, you don’t need any additional download because Webapp2 is shipped with the GAE SDK and can be imported independently of the Runtime adopted *.
Here is a trivial example on how to use Webapp2 in the old Python 2.5 runtime:
app.yaml
main.py
* Just be sure to use the latest SDK available