forked from pavgup/ubertool_cts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_not_found.py
32 lines (26 loc) · 1.27 KB
/
file_not_found.py
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
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 03 13:30:41 2012
@author: jharston
"""
import os
os.environ['DJANGO_SETTINGS_MODULE']='settings'
import webapp2 as webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
class defaultPage(webapp.RequestHandler):
def get(self):
html = template.render('templates/01cts_uberheader.html', {'title':'File not found.'})
html = html + template.render('templates/02cts_uberintroblock_nomodellinks.html', {'title2':'File not found'})
html = html + template.render ('templates/03cts_ubertext_links_left.html', {})
html = html + template.render ('templates/04ubertext_start.html', {'text_paragraph':'File not found.'})
html = html + """ <img src="../images/404error.png" width="300" height="300">"""
html = html + template.render ('templates/04ubertext_end.html', {})
html = html + template.render ('templates/05cts_ubertext_links_right.html', {})
html = html + template.render('templates/06cts_uberfooter.html', {'links': ''})
self.response.out.write(html)
app = webapp.WSGIApplication([('/.*', defaultPage)], debug=True)
def main():
run_wsgi_app(app)
if __name__ == '__main__':
main()