Re: What is the Right Way to handle DECIMAL fields?

2006-09-05 Thread Carlo C8E Miron
On 8/29/06, Andrew Durdin <[EMAIL PROTECTED]> wrote: > In a project I am working on, we need to store monetary values in the > database, and we want to avoid floats altogether so that we don't lose > precision or have representation errors. The existing FloatField was > not suitable for use, becau

Was:[Django] #2656: After creating a new user with create_user, calling login is failed

2006-09-05 Thread limodou
As I saw Adrian said this problem should be discussed in the maillist, so I post here. And what I want indeed is not invoke "authenticate()", but only invoke "login()" is enough after I create a new user using create_user(). I thought since I create a new user successfully, it's implied that the

Re: Initial data hooks: management.install vs. management.syncdb

2006-09-05 Thread JP
Ned Batchelder wrote: > I've also tried Jason's nose-django plugin, and it uses > management.install(app) to create the test database. This doesn't fire > a signal I can hook, so I wasn't able to create my initial data. Now that syncdb can be run non-interactively, I can switch the plugin over

Re: Was:[Django] #2656: After creating a new user with create_user, calling login is failed

2006-09-05 Thread James Bennett
On 9/5/06, limodou <[EMAIL PROTECTED]> wrote: > So I think the later is more comfortable. But there is no automaticly > authenticate in create_user, so for now, I must write like the former. As I said in the ticket (that was me, btw, not Adrian), I think your second method of just calling 'login'

Re: Validation Aware Models and django.forms on steroids

2006-09-05 Thread Brantley Harris
On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > How To Be Sexy, Rule 1: The word "manipulator" has really got to go. > Thinger = "Manipulator" or "Form" # The thing that holds the fields Bah, I try and try, but I can't figure out how to seperate the manipulation process from the Thing

Re: Initial data hooks: management.install vs. management.syncdb

2006-09-05 Thread Russell Keith-Magee
On 9/5/06, JP <[EMAIL PROTECTED]> wrote: Now that syncdb can be run non-interactively, I can switch the pluginover to calling that instead. It will take some time, however, becauseI need to figure out how to do that and use the new create/drop test db functions from djagnoo.test.utils when they are

Re: Was:[Django] #2656: After creating a new user with create_user, calling login is failed

2006-09-05 Thread limodou
On 9/5/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/5/06, limodou <[EMAIL PROTECTED]> wrote: > > So I think the later is more comfortable. But there is no automaticly > > authenticate in create_user, so for now, I must write like the former. > > As I said in the ticket (that was me, btw,

Re: Initial data hooks: management.install vs. management.syncdb

2006-09-05 Thread JP
Russell Keith-Magee wrote: > On 9/5/06, JP <[EMAIL PROTECTED]> wrote: > > > > > > Now that syncdb can be run non-interactively, I can switch the plugin > > over to calling that instead. It will take some time, however, because > > I need to figure out how to do that and use the new create/drop tes