Skip to content

Commit

Permalink
Correct template tag loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoravcik committed Sep 5, 2014
1 parent 0e7176b commit 183f8a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Templates Usage
All of the examples assume that you first load the my_css template tag in
your template.::

{% load my_css %}
{% load my_css_tags %}


Add this to your HEAD section of the template. ::

<link href="{% mycss 0 %}" rel="stylesheet" type="text/css" />
<link href="{% my_css 0 %}" rel="stylesheet" type="text/css" />


Where the optional parameter is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
def my_css(cache=1):
css_file = settings.MY_CSS_URL + settings.MY_CSS_FILENAME
if not cache:
css = "%s?u=%s" % (css_file, str(uuid.uuid4())[:8])
return css
css_file = "%s?u=%s" % (css_file, str(uuid.uuid4())[:8])
return css_file
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='django-my-css',
version='0.1.0',
version='0.1.1',
url='https://github.com/mmoravcik/django-my-css',
author="Matus Moravcik",
author_email="[email protected]",
Expand Down

0 comments on commit 183f8a9

Please sign in to comment.