django-caching

Cache for everybody except staff members.

I have a django site where I want to stick an "admin bar" along the top of every non-admin page for staff members. It would contain useful things like page editing tools, etc. The problem comes from me using the @cache_page decorator on lots of pages. If a normal user hits a page, the cached version comes up without the admin bar (even ...

erase template cache

I have a Django app where users can select between 2 interface modes, that mode affect some pages... for those pages I use different templates In urls.py I have something like this: mode = Config.objects.get().mode urlpatterns = patterns('', url(r'^my_url/$', 'custom_view', {'template':'my_template.html', 'mode':mode} ), ) Then m...