I don't know of a simple way. Here's something I wrote to achieve that on
djangoproject.com (invalidating a cached blog post on save):
https://github.com/django/djangoproject.com/blob/90e92fd18543f95685c24f84dc5e1269a5acc38a/blog/models.py#L105-L116
Adding something to Django to help with this s
Does the PersistentRemoteUserMiddleware added in Django 1.9 help?
https://docs.djangoproject.com/en/1.9/howto/auth-remote-user/#using-remote-user-on-login-pages-only
On Monday, November 30, 2015 at 3:36:00 PM UTC-5, Dan Davis wrote:
>
> So, where I work we have a CAS server we like to use. We l
So, where I work we have a CAS server we like to use. We like to use it
with mod_auth_cas.So far, so good - RemoteUserMiddleware is my friend.
The problem here is that REMOTE_USER will not be set unless the URI is
protected by CAS, and if the URI is protected by CAS, then the user will b
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
Hi kbnk, monoBOT,
Thank you both, your answers on the spot, I have tried using the filter and
it's working, I may need to delete one of the records to get this sorted,
thanks again.
>>> Question.objects.filter(pub_date__year=current_year)
[, ]
Best regards,
Ahmed Abdullah
On Sunday, 29 Novemb
5 matches
Mail list logo