Move index.html from public to templates.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 23 Jul 2017 19:23:50 +0000 (19:23 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 23 Jul 2017 19:23:50 +0000 (19:23 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrfeed/trunk@2646 7aebc617-e5e2-0310-91dc-80fb5f6d2477

MANIFEST.in
wrfeed/public/index.html [deleted file]
wrfeed/templates/index.html [new file with mode: 0644]
wrfeed/wrfeed.py

index 326dfdb119cc145da47335dba2d651a1535c2d1d..4429cce293dc0e33c3281b668bcb935ad6c9773a 100644 (file)
@@ -1 +1 @@
-recursive-include wrfeed/public *
+graft wrfeed/static
diff --git a/wrfeed/public/index.html b/wrfeed/public/index.html
deleted file mode 100644 (file)
index f3e0a52..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html 
-     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-       <head>
-               <title>Winterrodeln Feeds</title>
-    </head>
-    <body>
-               <h1>Winterrodeln Feeds</h1>
-               <p>See <a href="http://www.winterrodeln.org/wiki/Winterrodeln:Feeds">page about feeds on www.winterrodeln.org</a>.</p>
-    </body>
-</html>
diff --git a/wrfeed/templates/index.html b/wrfeed/templates/index.html
new file mode 100644 (file)
index 0000000..f3e0a52
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+       <head>
+               <title>Winterrodeln Feeds</title>
+    </head>
+    <body>
+               <h1>Winterrodeln Feeds</h1>
+               <p>See <a href="http://www.winterrodeln.org/wiki/Winterrodeln:Feeds">page about feeds on www.winterrodeln.org</a>.</p>
+    </body>
+</html>
index cdf0ba751fe593f129a6bdaa0f36962f1c7acb75..877ea50bcbe324fd67dddfd1e859c00ad5f6fd48 100644 (file)
@@ -29,7 +29,7 @@ def close_db(error):
 
 @app.route("/")
 def hello():
 
 @app.route("/")
 def hello():
-    return send_from_directory('public', 'index.html')  # actually, this is no template
+    return send_from_directory('templates', 'index.html')  # actually, this is no template
 
 
 @app.route("/berichte/alle")
 
 
 @app.route("/berichte/alle")