Clear view cache using @cache_page

2015-11-30 Thread Dimitris R
Hello, I am using Django 1.8.2 and caching my views using the @cache_page decorator: @cache_page(60 * 5) def view_name(request, obj_id): [...] Is there a way to clear the cached entry programmatically, prior of the cache timeout? Thanks, Dimitris -- You received this message because you

Re: Clear view cache using @cache_page

2015-12-01 Thread Dimitris R
Thanks for your reply Tim. I have tried the code provided, but it seems that the cache is not deleted. I am testing the code in development, which uses django.core.cache.backends.locmem.LocMemCache. I don't know if that makes any difference. Also, I have noticed that the path in *url.path*

Re: [ANNOUNCE] Django 1.9 released

2015-12-02 Thread Dimitris R
You need to upgrade pip. See https://docs.djangoproject.com/en/1.9/releases/1.9/#syntaxerror-when-installing-django-with-pip-1-5-6 On Wednesday, 2 December 2015 12:20:49 UTC+2, Mike wrote: > > pip install django >> Downloading/unpacking django >> Downloading Django-1.9-py2.py3-none-any.whl (6