webapp: serve static files from /static
authorHelmut Grohne <helmut@subdivi.de>
Wed, 4 Sep 2013 08:15:59 +0000 (10:15 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Wed, 4 Sep 2013 08:15:59 +0000 (10:15 +0200)
dedup/templates/base.html
webapp.py

index 62f4087..9dfb788 100644 (file)
@@ -3,8 +3,8 @@
        <head>
                <title>{% block title %}{% endblock %}</title>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-               <link  rel="stylesheet" type="text/css" href="{{ urlroot|e }}/style.css">
-               <link rel="icon" type="image/vnd.microsoft.icon" href="{{ urlroot|e }}/favicon.ico">
+               <link rel="stylesheet" type="text/css" href="{{ urlroot|e }}/static/style.css">
+               <link rel="icon" type="image/vnd.microsoft.icon" href="{{ urlroot|e }}/static/favicon.ico">
                {% block header %}{% endblock %}
        </head>
        <body>
index 632b485..d5f076e 100755 (executable)
--- a/webapp.py
+++ b/webapp.py
@@ -244,7 +244,7 @@ def main():
                       help="path to the sqlite3 database file")
     options, args = parser.parse_args()
     app = Application(sqlite3.connect(options.database))
-    app = SharedDataMiddleware(app, {"/": ("dedup", "static")})
+    app = SharedDataMiddleware(app, {"/static": ("dedup", "static")})
     make_server("0.0.0.0", 8800, app).serve_forever()
 
 if __name__ == "__main__":