mirror of
https://github.com/schibo/1964js.git
synced 2025-04-02 10:52:54 -04:00
git-svn-id: http://1964js.googlecode.com/svn/trunk@303 0378edba-076e-5dc0-2bb2-d87a714dcd81
26 lines
593 B
Python
Executable file
26 lines
593 B
Python
Executable file
import os
|
|
import urllib
|
|
|
|
from google.appengine.api import users
|
|
from google.appengine.ext import ndb
|
|
|
|
import jinja2
|
|
import webapp2
|
|
|
|
JINJA_ENVIRONMENT = jinja2.Environment(
|
|
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
|
|
extensions=['jinja2.ext.autoescape'],
|
|
autoescape=True)
|
|
|
|
class MainPage(webapp2.RequestHandler):
|
|
|
|
def get(self):
|
|
|
|
template_values = {}
|
|
|
|
template = JINJA_ENVIRONMENT.get_template('index.html')
|
|
self.response.write(template.render(template_values))
|
|
|
|
application = webapp2.WSGIApplication([
|
|
('/', MainPage),
|
|
], debug=True)
|