-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotfound.py
61 lines (53 loc) · 1.43 KB
/
notfound.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import webapp2
class notfound(webapp2.RequestHandler):
def get(self):
page = """
<html>
<head>
<title>Opa</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<style type="text/css">
body {
padding-top: 20px;
padding-bottom: 40px;
}
/* Custom container */
.container-narrow {
margin: 0 auto;
max-width: 700px;
}
.container-narrow > hr {
margin: 30px 0;
}
/* Main marketing message and sign up button */
.jumbotron {
margin: 60px 0;
text-align: center;
}
.jumbotron h1 {
font-size: 72px;
line-height: 1;
}
.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}
</style>
<div class="container-narrow">
<div class="jumbotron">
<h1>Opa Opa Opa</h1>
<p class="lead">Essa pagina não existe</p>
</div>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
"""
self.response.write(page)
app = webapp2.WSGIApplication([('/.*', notfound)],
debug=True)