I was able to successfully run a "Hello World" Pyramid app
using Python 2.5.
I need to run Python 2.7 now.
Here is what is needed:
app.yaml
=========================
application: myapp
version: 1
runtime: python27
api_version: 1
threadsafe: true
=========================
I need to move my WSGI application object to the global scope:
=========================
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, WebApp World!')
app = webapp2.WSGIApplication([('/', MainPage)])
=========================
This example is using webapp2. Do I need to use webapp2,
if so how to use Pyramid too?
Any help would be much appreciated,
Thank you in advance,