└── www ├── app.yaml ├── index.yaml └── main.py /www/app.yaml: -------------------------------------------------------------------------------- 1 | application: bloopfm 2 | version: 1 3 | runtime: python 4 | api_version: 1 5 | 6 | handlers: 7 | - url: .* 8 | script: main.py 9 | -------------------------------------------------------------------------------- /www/index.yaml: -------------------------------------------------------------------------------- 1 | indexes: 2 | 3 | # AUTOGENERATED 4 | 5 | # This index.yaml is automatically updated whenever the dev_appserver 6 | # detects that a new type of query is run. If you want to manage the 7 | # index.yaml file manually, remove the above marker line (the line 8 | # saying "# AUTOGENERATED"). If you want to manage some indexes 9 | # manually, move them above the marker line. The index.yaml file is 10 | # automatically uploaded to the admin console when you next deploy 11 | # your application using appcfg.py. 12 | -------------------------------------------------------------------------------- /www/main.py: -------------------------------------------------------------------------------- 1 | from google.appengine.ext import webapp 2 | from google.appengine.ext.webapp import util 3 | from django.utils import simplejson 4 | 5 | class MainHandler(webapp.RequestHandler): 6 | def get(self): 7 | self.response.out.write('Hello world!') 8 | 9 | class NextHandler(webapp.RequestHandler): 10 | def get(self): 11 | self.response.out.write(simplejson.dumps({'filename': 'gruemangroup/theme.mp3'})) 12 | 13 | def main(): 14 | application = webapp.WSGIApplication([ 15 | ('/', MainHandler), 16 | ('/next.json', NextHandler)], debug=True) 17 | util.run_wsgi_app(application) 18 | 19 | if __name__ == '__main__': 20 | main() 21 | --------------------------------------------------------------------------------