~*~ Sport Cars Of the Year 2007~*~

2006-12-21 Thread Marry4U
*Best Sport Cars of the Year* [image: Sport Cars] http://info-center2.50webs.com/best-cars/ *BMW* *Honda* *Hondai* *Mitsubishi* * See VOLVO* *Jeeps* *and*

Re: proposal: get_or_none QuerySet method

2006-12-21 Thread Gary Wilson
Joseph Perla wrote: Also, here's the pseudo-ish code for it: def update_or_create( --same arguments as get_or_create()-- ): object, created = Class.objects.get_or_create( --args above-- ) if not created: object.__dict__.update(defaults) object.save() return

why error: (10054, 'Connection reset by peer') when add user?

2006-12-21 Thread yichao.zhang
my env: python 2.4.3, django-0.95-py2.4, WinXP sp2 I created a new project, enabled the admin feature. After logging into admin as superuser, I press the button "Add user", then the following error occurs. It's reproduciable against mysql and sqlite3. Exception happened during processing of

Re: proposal: get_or_none QuerySet method

2006-12-21 Thread Gary Wilson
Joseph Perla wrote: There should also be an update_or_create() function. I often find myself get_or_creating, then updating the object's dict if it wasnt just created, then saving. This can easily be expressed more clearly in one line with this function. This gave me the idea of an update()

Re: Regarding the copy of forms -> oldforms

2006-12-21 Thread Adrian Holovaty
On 12/18/06, Michael Radziej <[EMAIL PROTECTED]> wrote: in changeset 4208 all the code from django/forms was copied to django/oldforms. Isn't that a little bit twisted? Now there's the same code twice, and any future patch for forms needs to address both trees. Good point, Michael. I've

Re: Regarding the copy of forms -> oldforms

2006-12-21 Thread Jeremy Dunck
On 12/21/06, Rob Hudson <[EMAIL PROTECTED]> wrote: Would Michael Radziej's suggestion work better for those who develop against trunk but whose servers are running stable releases (ie: 0.95)? That's my case and I just ran up against this issue. If you're doing that in the expectation that

Re: login_required decorator and redirect_to

2006-12-21 Thread Rob Hudson
Karen wrote: That would certainly do the trick, and is easy enough. Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: login_required decorator and redirect_to

2006-12-21 Thread Karen
I have the same kind of setup -- no profile stuff, some views that require login and rediret as appropriate, plus a direct login link on pages whenever the user isn't logged in. To get users who click on one of those links redirected to the site root, I just have this in my login template:

Re: login_required decorator and redirect_to

2006-12-21 Thread Waylan Limberg
On 12/21/06, Rob Hudson <[EMAIL PROTECTED]> wrote: I've got a particular case that I wonder if it is worth submitting a patch for... I do not have an /accounts/profile/ URL and for the site I'm building it doesn't make sense to have a profile page. But I do need login/logout functionality

Re: #2473 - 'in' QuerySet operator generates invalid SQL for empty list

2006-12-21 Thread Gary Wilson
Russell Keith-Magee wrote: If you can get some confirmation that this approach works on other backends, I'll put it in as an interim measure; and if nothing else, the tests are most helpful - Thanks for those. Installed mysql 5.0.26, and the tests passed.

login_required decorator and redirect_to

2006-12-21 Thread Rob Hudson
I've got a particular case that I wonder if it is worth submitting a patch for... I do not have an /accounts/profile/ URL and for the site I'm building it doesn't make sense to have a profile page. But I do need login/logout functionality and am using django.contrib.auth. I'm also providing

Re: Customizable object tools

2006-12-21 Thread Gary Wilson
Ville Säävuori wrote: Replying to myself > This would be great. But I think it would be better to name the > templates __foo.html. It would make the customization of > admin pages very easy and Django-like. D'oh. After looking the admin source code, this allready works! I wonder howcome it

Re: Improvements to floatformat template filter

2006-12-21 Thread Russell Keith-Magee
On 12/21/06, Ace Gopher <[EMAIL PROTECTED]> wrote: Just wanted to note I created a patch to floatformat to make it more generally useful. Please let me know what you think: http://code.djangoproject.com/ticket/3176 Nice addition. However, if you want this patch to be considered for

Re: Re: #2333 Pt 3 - Test system fixture data

2006-12-21 Thread Russell Keith-Magee
On 12/20/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: On 12/19/06 5:12 PM, Russell Keith-Magee wrote: > There are only two things that could be considered non-backwards > compatible: > 1) The renaming of the inital_data targets to custom_sql How about we keep the initial data targets

Improvements to floatformat template filter

2006-12-21 Thread Ace Gopher
Just wanted to note I created a patch to floatformat to make it more generally useful. Please let me know what you think: http://code.djangoproject.com/ticket/3176 Basically, floatformat in the default case works as it always has. However, floatformat now can take an argument which specifies

>^< Most Secure and Fastest Internet Browsing >^

2006-12-21 Thread Marry4U
*Most Demanding and Secure Internet browsing* [image: Speedy Browsing] http://funnyzone1.50webs.com/firefox/ *Fastest Internet browsing* *Most Secure* *Tabbed Browsing* *Yoonoo Support* *Foxy Tunes support * *and* ** *Much More...