Commits

Anonymous committed 9807f12

seo

Comments (0)

Files changed (10)

 - url: /sign.*
   script: kcbuser.py
 
-- url: /show
-  script: main.py
-  login: required
 - url: .*
   script: main.py
 
 import re
 
 
+class MainPage(webapp.RequestHandler):
+  def get(self):
+	  User=None
+	  template_values = {
+
+	  'USER':User,
+      }
+	  path = os.path.join(os.path.dirname(__file__), 'tpl','mainpage.html')
+	  self.response.out.write(template.render(path, template_values))
+
+class AboutPage(webapp.RequestHandler):
+  def get(self):
+	  User=None
+	  template_values = {
+
+	  'USER':User,
+      }
+	  path = os.path.join(os.path.dirname(__file__), 'tpl','aboutpage.html')
+	  self.response.out.write(template.render(path, template_values))
 
 class ShortUrlHandler(webapp.RequestHandler):
   def get(self,url):
 	  except IndexError:
 		self.redirect('/signin')
 
-application = webapp.WSGIApplication([('/(.*)', ShortUrlHandler),],debug=True)
+application = webapp.WSGIApplication([
+('/', MainPage),
+('/about', AboutPage),
+('/(.*)', ShortUrlHandler),
+
+],debug=True)
 
 def main():
   run_wsgi_app(application)

tpl/aboutpage.html

+<html>
+<head>
+
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+<link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
+<title>关于--wodewish--我的愿望列表</title>
+    {% include 'seo.html' %}
+</head>
+ <body>
+    {% include 'header.html' %}
+
+
+
+<h2>内容完善中。。。。。。</h2>
+
+
+
+
+
+{% include 'footer.html' %}
+</body>
+
+</html>
 <meta http-equiv="Content-Type" content="text/html; charset=utf8">
 <link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />
 
-
+    {% include 'seo.html' %}
 
 </head>
 
 <title>{{NAME}}的愿望列表--wodewish--我的愿望列表</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf8">
 <link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
+    {% include 'seo.html' %}
 </head>
   <body>
 <div style="text-align:center;width:300px;margin-right: auto; margin-left: auto;">

tpl/deepadmin.html

 <title>后台--wodewish--我的愿望列表</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf8">
 <link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />
-
+    {% include 'seo.html' %}
 
 
 </head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 <link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
 <title>error--wodewish--我的愿望列表</title>
+    {% include 'seo.html' %}
 </head>
     {% include 'header.html' %}
 
  <p>
   {{NAME}}
  </p>
+
  {% endif %}
+    <br /><a  href="/about">
+     关于/帮助
+ </a>
 {%  if  not  USER  %}
  <a href="/signin">
   使用Google账户登入

tpl/mainpage.html

 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 <link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
 <title>wodewish--我的愿望列表</title>
+    {% include 'seo.html' %}
 </head>
     {% include 'header.html' %}
 
   <body>
-<div style="text-align:center;"><h1>WODEWISH</h1>
-</div>
+
+
+<h2>wodewish</h2>
+
+<h1>我的愿望列表</h1>
+
+
+
 
 
 
+
+
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-20567157-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+
+</script>
+<meta name="KEYWords" contect="wodewish,我的愿望,我的愿望列表,">
+<meta name="DEscription" contect="我的愿望列表">
+<meta name="Robots" contect= "all">
+<meta name="Author" contect="weakdancer">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.