Re: Project-wide cache prefix (low-level API)

2010-06-02 Thread batiste
What about the problem that you can, in theory, use the same
application several time (several instance) within the same project?

I don't have a real use-case, but I have heard people doing it.

http://groups.google.com/group/django-users/browse_thread/thread/076f31a1a5479676/8d5f2e0f8f1e1957

Batiste

On Jun 2, 3:47 am, Byron  wrote:
> Yea, I definitely agree that it is a simple solution. I think the the
> fact that the setting is optional and would not break any existing
> code, it should be included since it "feels" like a common case... we
> shall leave it up to the core devs to determine this.
>
> On Jun 1, 7:14 pm, Gabriel Hurley  wrote:
>
>
>
> > Personally, I solved this by writing a wrapper around
> > django.utils.cache that can be dropped in transparently. It was a
> > really simple matter to have it take a cache prefix (in my case from
> > settings.py) and pass that into the original functions.
>
> > It's a pretty easy fix if the core team agrees that it's useful. Seems
> > like the debate might be more around adding another setting for it/
> > where/how to manage that prefix.
>
> > All the best,
>
> >     - Gabriel
>
> > On Jun 1, 8:12 am, Byron  wrote:
>
> > > I ran into a seemingly common problem with cache key conflicts between
> > > two projects that both share an app and the same memcache instance. I
> > > would imagine that being able to optionally set a PROJECT_CACHE_PREFIX
> > > that is prepended to every key when setting/getting would be a nice
> > > transparent way of ensuring there are no conflicts. Obviously if the
> > > behavior is to share cache between projects, then no prefix can be
> > > specified.
>
> > > I want to get initial feedback, implications, etc. on this before I
> > > start writing a patch.
>
> > > Thanks,
> > > -Byron

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: Admin patches

2010-06-09 Thread batiste
Hi,

There is also this small fix that need feedback. There is a patch but
no doc (it's more a bug fix than a new feature)

http://code.djangoproject.com/ticket/12241

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.