forked from davidsansome/babbledrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.py
More file actions
26 lines (17 loc) · 638 Bytes
/
index.py
File metadata and controls
26 lines (17 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from google.appengine.dist import use_library
use_library('django', '1.1')
import os
from django.template import RequestContext
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
class IndexPage(webapp.RequestHandler):
def get(self):
params = {}
t = template.load(os.path.join(os.path.dirname(__file__), "index.html"))
self.response.out.write(t.render(RequestContext(self.request, params)))
application = webapp.WSGIApplication([
('/', IndexPage),
], debug=True)
if __name__ == '__main__':
run_wsgi_app(application)