[extensions-web: 73/75] Start using staticfiles again.



commit 70c71f1f37226bce2e49eaae31faf62857b0586e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 22 23:00:47 2011 -0400

    Start using staticfiles again.

 sweettooth/auth/templates/auth/profile.html    |    2 +-
 sweettooth/review/templates/review/review.html |    2 +-
 sweettooth/templates/base.html                 |    8 ++++----
 sweettooth/urls.py                             |    1 -
 4 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/sweettooth/auth/templates/auth/profile.html b/sweettooth/auth/templates/auth/profile.html
index 04333d8..5f9db93 100644
--- a/sweettooth/auth/templates/auth/profile.html
+++ b/sweettooth/auth/templates/auth/profile.html
@@ -34,5 +34,5 @@
 
 {% block head %}
   {{ block.super }}
-  <link rel="stylesheet" href="/static/css/review-table.css" />
+  <link rel="stylesheet" href="{{ STATIC_URL }}css/review-table.css" />
 {% endblock %}
diff --git a/sweettooth/review/templates/review/review.html b/sweettooth/review/templates/review/review.html
index d3d08b0..6f08f01 100644
--- a/sweettooth/review/templates/review/review.html
+++ b/sweettooth/review/templates/review/review.html
@@ -66,5 +66,5 @@
 
 {% block head %}
   {{ block.super }}
-  <link rel="stylesheet" href="/static/css/review.css" />
+  <link rel="stylesheet" href="{{ STATIC_URL }}css/review.css" />
 {% endblock %}
diff --git a/sweettooth/templates/base.html b/sweettooth/templates/base.html
index 3d8ee97..b2c94c5 100644
--- a/sweettooth/templates/base.html
+++ b/sweettooth/templates/base.html
@@ -2,8 +2,8 @@
 <html>
   <head>
     <meta charset="utf-8" />
-    <link rel="stylesheet" href="/static/css/sweettooth.css" />
-    <link rel="shortcut icon" href="/static/images/favicon.png" />
+    <link rel="stylesheet" href="{{ STATIC_URL }}css/sweettooth.css" />
+    <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.png" />
     {% block head %} {% endblock %}
     <title>{% block title %}GNOME Shell Extensions{% endblock %}</title>
     <script>
@@ -11,8 +11,8 @@ window._SW = function() {
 {% block document-ready %}{% endblock %}
 };
     </script>
-    <script src="/static/js/jquery.js"></script>
-    <script data-main="/static/js/main.js" src="/static/js/require.js"></script>
+    <script src="{{ STATIC_URL }}js/jquery.js"></script>
+    <script data-main="{{ STATIC_URL }}js/main.js" src="{{ STATIC_URL }}js/require.js"></script>
   </head>
   <body>
     <div id="global_domain_bar">
diff --git a/sweettooth/urls.py b/sweettooth/urls.py
index c057f28..a712bbc 100644
--- a/sweettooth/urls.py
+++ b/sweettooth/urls.py
@@ -27,5 +27,4 @@ else:
     urlpatterns += url(r'^static/extension-data/(?P<path>.*)', lambda n: None,
                        name='extension-data'),
 
-
 urlpatterns += staticfiles_urlpatterns()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]