Hi everyone. I've enabled 
CachedStaticFileStorage<https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#cachedstaticfilesstorage>
.
I'm using db as cache backend. I followed all the things said in the django 
docs, now my settings looks like this: 

# cache table settings                                                          
                                                                                
                                                                              
STATICFILES_STORAGE="django.contrib.staticfiles.storage.CachedStaticFilesStorage"
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'my_cache_table',
            }
     }
DEBUG=False


I've tried it in a template on single css link :

{% load static from staticfiles %}<!-- from --><link rel="stylesheet" 
type="text/css" href="{{ STATIC_URL }}css/my_style.css" rel="stylesheet"/>
<!-- to --><link rel="stylesheet" type="text/css" href="{% static 
"css/my_style.css" %} rel="stylesheet"/>


Well It correctly generate the HTML, e.g:

<link rel="stylesheet" type="text/css" href="css/my_style.27e20196a850.css">


but I have a 404 on that file.

Is there something missing?
I've also launched manage.py collectstatic, but I get some errors in an 
app. May be that the error?

My initial intention was to implement a custom templatetag to do that, but 
since I don't want to reinvent the wheel I'd like to solve it in an 
appropeiate way.

Thanks
LuKe

-- 
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