Go – Django & webapp living together on GAE

djangogoogle-app-engine

Is it possible to have both frameworks available?
So that I could have

from google.appengine.ext import webapp
from django.template.loader import render_to_string

class MainPage(webapp.RequestHandler):

    def get(self):
        self.response.out.write(render_to_string('some.template'))

and

from django.http import HttpResponse

def hello(request):
    return HttpResponse("Hello world")

running mapped to different URLs?

EDIT:
The question basically boils down to how do I implement

urlpatterns = [
               # webapp-style handler
               (r'/webapp', views.MainPage),
               # django
               (r'/django', views.hello),
              ]

Best Solution

Certainly - as long as you're not using 0.9.6 in one sub-app and 1.0 (via the use_library call) in the other. Just map URL regular expressions to separate handlers in app.yaml and you're good to go.

Related Question