Skip to content
This repository
Browse code

0.3.1 moved from static template tag to STATIC_URL to support django 1.3

  • Loading branch information...
commit 954b23395e42c0aba61b16e581a0a0baf49682fd 1 parent 46c315a
Chris Villa authored
7  README.rst
Source Rendered
@@ -14,11 +14,16 @@ If you don't know what AB testing is, check out `wikipedia <http://en.wikipedia.
14 14
 Changelog
15 15
 ---------
16 16
 
  17
+0.3.1
  18
+~~~~~
  19
+
  20
+- Replaced django static template tags. Supports django 1.3 again!
  21
+
17 22
 0.3.0
18 23
 ~~~~~
19 24
 
20 25
 - Added django permission support.
21  
-- Started using django static instead of nexus:media.
  26
+- Started using django static instead of nexus:media. (django 1.4 only)
22 27
 
23 28
 
24 29
 Installation
11  experiments/templates/nexus/experiments/index.html
... ...
@@ -1,20 +1,19 @@
1 1
 {% extends "nexus/module.html" %}
2 2
 
3  
-{% load staticfiles %}
4 3
 {% load experiment_helpers %}
5 4
 
6 5
 {% block head %}
7 6
     {{ block.super }}
8 7
 
9  
-    <link rel="stylesheet" href="{% static 'experiments/css/experiments.css' %}">
  8
+    <link rel="stylesheet" href="{{ STATIC_URL }}experiments/css/experiments.css">
10 9
 
11 10
     <style>
12 11
         #container table.experiments td.actions button.edit span {
13  
-            background: transparent url("{% static 'experiments/img/edit.png' %}") no-repeat left 35%;
  12
+            background: transparent url("{{ STATIC_URL }}experiments/img/edit.png") no-repeat left 35%;
14 13
         }
15 14
 
16 15
         #container table.experiments td.actions button.delete span {
17  
-            background: transparent url("{% static 'experiments/img/delete.png' %}") no-repeat left 35%;
  16
+            background: transparent url("{{ STATIC_URL }}experiments/img/delete.png") no-repeat left 35%;
18 17
         }
19 18
     </style>
20 19
 
@@ -27,8 +26,8 @@
27 26
         };
28 27
     </script>
29 28
 
30  
-    <script src="{% static 'experiments/js/string_score.min.js' %}"></script>
31  
-    <script src="{% static 'experiments/js/nexus_experiments.js' %}"></script>
  29
+    <script src="{{ STATIC_URL }}experiments/js/string_score.min.js"></script>
  30
+    <script src="{{ STATIC_URL }}experiments/js/nexus_experiments.js"></script>
32 31
 {% endblock %}
33 32
 
34 33
 {% block content %}
5  experiments/templates/nexus/experiments/results.html
... ...
@@ -1,12 +1,11 @@
1 1
 {% extends "nexus/module.html" %}
2  
-{% load staticfiles %}
3 2
 {% load humanize %}
4 3
 {% load experiment_helpers %}
5 4
 
6 5
 {% block head %}
7 6
     {{ block.super }}
8 7
 
9  
-    <link rel="stylesheet" href="{% static 'experiments/css/experiments.css' %}">
  8
+    <link rel="stylesheet" href="{{ STATIC_URL }}experiments/css/experiments.css">
10 9
 
11 10
     <script>
12 11
         var EXPERIMENT = {
@@ -18,7 +17,7 @@
18 17
         };
19 18
     </script>
20 19
 
21  
-    <script src="{% static 'experiments/js/nexus_experiments.js' %}"></script>
  20
+    <script src="{{ STATIC_URL }}experiments/js/nexus_experiments.js"></script>
22 21
 
23 22
 {% endblock %}
24 23
 
2  requirements.txt
... ...
@@ -1,5 +1,5 @@
1 1
 redis>=2.4.9
2  
-django>=1.4.0
  2
+django>=1.3.0
3 3
 nexus>=0.2.3
4 4
 jsonfield>=0.9
5 5
 gargoyle>=0.9.0
2  setup.py
@@ -26,7 +26,7 @@ def parse_dependency_links(file_name):
26 26
 
27 27
 
28 28
 setup(name='django-experiments',
29  
-      version='0.3.0',
  29
+      version='0.3.1',
30 30
       description='Python Django AB Testing Framework',
31 31
       author='Chris Villa',
32 32
       author_email='chris@mixcloud.com',

0 notes on commit 954b233

Please sign in to comment.
Something went wrong with that request. Please try again.