I found out that the CSS files where not correctly written and they should
have generated this error. Pity I have been searching for the problem for 2
days now :-)

Regards,

Andréas

2013/7/3 Andreas Kuhne <andreas.ku...@suitopia.com>

> Hi all,
>
> I am trying to CachedStaticFilesStorage to work in our environment. I have
> been able to configure all of the settings, and am able to copy all static
> files (we have alot of them) to the correct location. However when the
> postprocessing starts and the MD5 hashes are being calculated it fails with
> an exception:
> ValueError: The file
> 'extjs/resources/css/images/default/editor/tb-sprite.gif' could not be
> found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage
> object at 0x146ee10>.
>
> This is because it is going through the css files trying to rewrite the
> url parts to add the MD5 hash. I have looked in the CSS files and all of
> the url calls are using relative paths, but it seems as though the rewrite
> process is forgetting to add the "../" part. The path that is in the error
> is a concatenation of the path where the CSS resides (extjs/resources/css)
> and the url (../images/default/editor), but it seems that the ../ is being
> omitted somehow. I have checked and tested the code for traversing the css
> files in a python shell and it works there. But it fails both on my
> development machine and the staging server.
>
> Has anyone had the same issues and knows what to do?
>
> Regards,
>
> Andréas
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to