Hi,

i try to use CachedStaticFilesStorage and, for now, it only gives me a 
headache!

Whay i've done : 
 1 - put STATICFILES_STORAGE = 
'django.contrib.staticfiles.storage.CachedStaticFilesStorage' in setting
 2 - DEBUG = False
 3 - add  'staticfiles': {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': os.path.join(ROOT_DIR, 'staticcache'),
    }
   to CACHES in settings
 4 - collectstatic
 5 - replace each occurrence of {{STATIC_URL}}/* by {% static "blabla" %}, 
with the correct {% load static from staticfiles %}

So, i've read and followed the doc

Now, the css are well modified by collectstatic. The items are well tagged 
with their md5. However, each time i access a page, i get a 500 error. In 
the logs, i have the following message :

ValueError: The file 'img/favicon.png' could not be found with 
<django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 
0x2c980d0>

I've search if there is more doc/howto, but didn't find anything. So i 
think i'm doing something wrong, but don't know what.

Last thing : if y use the md5-tagged version in the template, it works. 
Hence, i think that CachedStaticFilesStorage can't manage to find my assets.

any idea?

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ei_OZzoffWQJ.
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