Hopefully somebody here can help me.  I got the latest svn version from
Google Code. I configured it (I think :) and started it up.  Now I'm getting
an exception when it hits the compressed_css tag.  Any help would be greatly
appreciated, because I'm at a loss.

I've included the error that comes up. As you can see, it isn't getting into
the django-css code, even tho' it did appear to successfully load the
library.  I've also included the (hopefully) relevant settings below that.

Request Method: GET
Request URL: http://localhost:8000/g/home
Django Version: 1.0.2 final
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.admindocs',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django_css',
 'tapmyhealth.graph',
 'tapmyhealth.api']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Template error:
In template /Users/travis/src/tapmyhealth/templates/base.html, error at line
6
   Caught an exception while rendering: (2, 'No such file or directory')
   4 :     <link REL="SHORTCUT ICON" HREF="/static/icon.png">
   5 :     {% load compressed %}
   6 :      {% compressed_css 'tmh_css' %}
   7 :     {% compressed_js 'all' %}
   8 :     {% block custom_style %}{% endblock %}


Traceback:
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/core/handlers/base.py"
in get_response
  86.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/Users/travis/src/tapmyhealth/../tapmyhealth/graph/views.py" in home
  18.
context_instance=RequestContext(request))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/shortcuts/__init__.py"
in render_to_response
  18.     return HttpResponse(loader.render_to_string(*args, **kwargs),
**httpresponse_kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/loader.py"
in render_to_string
  107.     return t.render(context_instance)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/__init__.py"
in render
  176.         return self.nodelist.render(context)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/__init__.py"
in render
  768.                 bits.append(self.render_node(node, context))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/debug.py"
in render_node
  71.             result = node.render(context)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/loader_tags.py"
in render
  97.         return compiled_parent.render(context)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/__init__.py"
in render
  176.         return self.nodelist.render(context)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/__init__.py"
in render
  768.                 bits.append(self.render_node(node, context))
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.egg/django/template/debug.py"
in render_node
  81.             raise wrapped

Exception Type: TemplateSyntaxError at /g/home
Exception Value: Caught an exception while rendering: (2, 'No such file or
directory')

And the chunks from settings.py. Note that my "ccss" (CleverCSS) file is in
MEDIA_ROOT/css/tmh.ccss.  I have validated that the path to clevercss is
actually correct. :)

COMPRESS_JS = {
    'all': {
        'source_filenames': ('js/jquery-1.3.2.js', 'js/jquery-flot.js',
'js/tmh.js' ),
        'output_filename': 'js/all_compressed.js',
    }
}


COMPRESS_CSS = {
    'tmh_css': {
        'source_filenames': ('css/tmh.ccss'),
        'output_filename': 'css/tmh_r?.css'
    }
}

COMPILER_FORMATS = {
    '.ccss': {

'binary_path':'/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/clevercss',
        'arguments': 'SOURCE_FILENAME.ccss'
    },
}

Thanks!

tj
-- 
Travis Jensen
Email:  travis.jen...@gmail.com
LinkedIn: http://www.linkedin.com/in/travisjensen
Blog: http://softwaremaven.innerbrain.com/
Twitter: http://twitter.com/SoftwareMaven

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to