Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 38 lines (29 sloc) 0.78 kb
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 27 28 29 30 31 32 33 34 35 36 37
"""
The main GAE script.

@author: Michael Hausenblas, http://sw-app.org/mic.xhtml#i
@since: 2011-06-11
@status: inital version
"""
import sys
import os
import logging
import cgi
import platform

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from google.appengine.dist import use_library
use_library('django', '0.96')

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from handler import *


application = webapp.WSGIApplication([
(r'/translate', LowLevelHandler),
(r'/(.+)/(.+)/$', FromToHandler),
(r'/mdpretty', MicrodataPrettyPrintHandler),
(r'/', MainHandler),
(r'/.*', NotFoundHandler)
],
debug=False)

def main():
    run_wsgi_app(application)

if __name__ == '__main__':
main()
Something went wrong with that request. Please try again.