dziegler / django-css

django-css is a fork of django_compressor that makes it easy to use CSS compilers with your Django projects. CSS compilers extend CSS syntax to include more powerful features such as variables and nested blocks, and pretty much rock all around.

Home Page:http://blog.davidziegler.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TemplateSyntaxError with misconfiguration

ptoal opened this issue · comments

Specifying an invalid value for x in {% compress x %} results in a TemplateSyntaxError:

Caught an exception while rendering: global name 'ALLOWED_ARGS' is not defined

This is due to the fact that ALLOWED_ARGS isn't defined anywhere, and is called in templatetags/compress.py

I've just started working with django-css, and I'm not sure what the allowed args are supposed to be, so I won't suggest a patch. :)

Sorry about that, the allowed args are 'css' or 'js' :)