Permalink
Browse files

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

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

0 comments on commit 954b233

Please sign in to comment.