Re: Extension to QuerySet.values()

2013-10-10 Thread Arnaud Delobelle
On Thursday, 10 October 2013 15:19:32 UTC+1, Ramiro Morales wrote: > > > On Oct 10, 2013 10:02 AM, "Arnaud Delobelle" <arn...@gmail.com> > wrote: > > > > Hi Russ, > > > > Thanks for the feedback. I agree that this could possibly be integr

Re: Extension to QuerySet.values()

2013-10-10 Thread Arnaud Delobelle
iving this document a > read [1]. > > [1] https://docs.djangoproject.com/en/1.5/internals/contributing/ > > Yours, > Russ Magee %-) > > On Wed, Oct 9, 2013 at 6:19 PM, Arnaud Delobelle > <arn...@gmail.com > > wrote: > >> Hi there, >> >> I q

Extension to QuerySet.values()

2013-10-09 Thread Arnaud Delobelle
Hi there, I quite often find that when using queryset.values() I would like to be able to define myself the values of the keys, especially when they span models: e.g. my_query_set.values('foo__bar__baz', 'quux', 'another__long__field__name') Then I end up with dictionaries with

How to include template with current tag definitions

2009-09-30 Thread Arnaud Delobelle
Hi all, I would like to be able to include a template from another template so that the included template understands the tag definitions defined in the including template, but I can't think of a simple way to do it. E.g. say that mytags defines a tag called "mytag". I would like the following

Re: python manage.py runserver giving strange error

2009-02-09 Thread Arnaud Delobelle
I've avoided the problem by using django-admin instead of manage.py... Which does not tell me what's gone wrong. -- Arnaud --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

python manage.py runserver giving strange error

2009-02-09 Thread Arnaud Delobelle
10.5.6) doesn't solve the problem. I would appreciate any hint. -- Arnaud Delobelle. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Redirect user to dynamic url after login

2008-10-11 Thread Arnaud Delobelle
On Oct 11, 2:55 pm, "F.Pighi" <[EMAIL PROTECTED]> wrote: > Hi all, I'm a newbie and I'm having some trouble with the login > process. > > I just want to redirect the user to /users/(?P[^/]+)/profile > or just /users/(?P[^/]+) after a successful login. > > How can I do it? I tried using the

Re: Where to put initializing code

2008-10-05 Thread Arnaud Delobelle
On Oct 5, 7:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Arnaud Delobelle wrote: > > Hi Django users, > > > I have a project made of several app and I am adding a 'search' app > > which provides searching facilities across all apps.  Each app whose >

Where to put initializing code

2008-10-05 Thread Arnaud Delobelle
Hi Django users, I have a project made of several app and I am adding a 'search' app which provides searching facilities across all apps. Each app whose content can be searched needs to register with the search app with code such as: def search_genf(request, search_terms): # generate

Re: newforms select field

2007-02-17 Thread Arnaud Delobelle
On Feb 17, 7:05 pm, "paulh" <[EMAIL PROTECTED]> wrote: > I feel the following should work: > class Myform(forms.Form): > ...publ = forms.ChoiceField(label='Publisher', required=False) > > and then in handler I should be able to set the choices dynamically > by: > > def meth(request): >

python manage.py broken

2007-02-09 Thread Arnaud Delobelle
Hi all Today I have moved a project that I have been working on to subversion. Prior to doing this I made a copy of the source tree and remove all the *.pyc and the "dot something" files. I then imported the whole tree to a subversion repository and checked it out again. I worked on it all day,

Re: conflict between edit_inline and ManyToManyField

2006-07-13 Thread Arnaud Delobelle
arnodel wrote: > Hi everyone, > > I am trying to get to grips with django and so far I find it wonderful! > But I am stuck on the following problem, which I have tried to make a > test case of below (see models.py). The problem is that when I try to > add a new parent with some children, then I