diff --git a/django_any_js/templatetags/any_js.py b/django_any_js/templatetags/any_js.py index 49b6bc342913555ba6395a2afc3e8f5e3122faff..2064d0b1feefe47bc4ce38f0eb2fb03c1a227104 100644 --- a/django_any_js/templatetags/any_js.py +++ b/django_any_js/templatetags/any_js.py @@ -1,6 +1,6 @@ from django import template from django.conf import settings -from django.template import loader, Context +from django.template import loader register = template.Library() @@ -10,7 +10,7 @@ def include_js(name): js_url = settings.ANY_JS[name]['js_url'] template = loader.get_template('django_any_js/js.html') - context = Context({'js_url': js_url}) + context = {'js_url': js_url} return template.render(context) @@ -20,6 +20,6 @@ def include_css(name): css_url = settings.ANY_JS[name]['css_url'] template = loader.get_template('django_any_js/css.html') - context = Context({'css_url': css_url}) + context = {'css_url': css_url} return template.render(context) diff --git a/setup.py b/setup.py index 4fa4e455acd609fa4483343d19cd6445f4aaa84e..7468cbfc7bdda5fc786679f3eebb4415bfee52fb 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ MYDIR = os.path.dirname(__file__) setup( name='django-any-js', - version='1.0.2', + version='1.0.3', keywords=['django', 'javascript'], description='Include JavaScript libraries with readable template tags', long_description=open(os.path.join(MYDIR, "README.rst"),