- url: /(.*) script: main.py
- url: /sites/(.*) script: site.py
class MainPage(webapp.RequestHandler): def get(self, site_alias): #do something nastydef main(): application = webapp.WSGIApplication( [(r'/sites/(.*)', MainPage)], debug=True) wsgiref.handlers.CGIHandler().run(application)