Re: cannot import ModelForm

2007-12-11 Thread l5x
Once again, you were right Malcolm. Python was importing the old django version, so I did: python setup.py install in the trunk and now it's working. Thank you everyone for your suggestions. Ps. I'm really happy that ModelForm exists, it's very useful. --~--~-~--~~~-

Re: cannot import ModelForm

2007-12-10 Thread Marty Alchin
On 12/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > from django.newforms.models import ModelForm > > That's not necessary. What the original poster is trying to do should > work (it certainly does for me). ModelForms is imported into the > django.newforms namespace. Ah, okay. I hadn't

Re: cannot import ModelForm

2007-12-10 Thread Kenneth Gonsalves
On 11-Dec-07, at 8:42 AM, Malcolm Tredinnick wrote: >> doesnt work. Is there a ModelForm - I see a ModelChoiceForm and a >> ModelMultipleChoiceForm > > Then your source code checkout of [6906], which the original poster > said > he was using, is corrupt. You should fix that problem before doin

Re: cannot import ModelForm

2007-12-10 Thread Kenneth Gonsalves
On 11-Dec-07, at 8:40 AM, Kenneth Gonsalves wrote: > On 11-Dec-07, at 8:34 AM, Marty Alchin wrote: > >>> Any ideas? >> >> from django.newforms.models import ModelForm > > doesnt work. Is there a ModelForm - I see a ModelChoiceForm and a > ModelMultipleChoiceForm arrrgghhh - not the latest svn h

Re: cannot import ModelForm

2007-12-10 Thread Malcolm Tredinnick
On Tue, 2007-12-11 at 08:40 +0530, Kenneth Gonsalves wrote: > > On 11-Dec-07, at 8:34 AM, Marty Alchin wrote: > > >> Any ideas? > > > > from django.newforms.models import ModelForm > > doesnt work. Is there a ModelForm - I see a ModelChoiceForm and a > ModelMultipleChoiceForm Then your sour

Re: cannot import ModelForm

2007-12-10 Thread Kenneth Gonsalves
On 11-Dec-07, at 8:34 AM, Marty Alchin wrote: >> Any ideas? > > from django.newforms.models import ModelForm doesnt work. Is there a ModelForm - I see a ModelChoiceForm and a ModelMultipleChoiceForm -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ Foss Conference

Re: cannot import ModelForm

2007-12-10 Thread Malcolm Tredinnick
On Mon, 2007-12-10 at 22:04 -0500, Marty Alchin wrote: > On 12/10/07, l5x <[EMAIL PROTECTED]> wrote: > > Any ideas? > > from django.newforms.models import ModelForm That's not necessary. What the original poster is trying to do should work (it certainly does for me). ModelForms is imported into

Re: cannot import ModelForm

2007-12-10 Thread Marty Alchin
On 12/10/07, l5x <[EMAIL PROTECTED]> wrote: > Any ideas? from django.newforms.models import ModelForm -Gul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

cannot import ModelForm

2007-12-10 Thread l5x
Hello, I have been working Django (mod_python or Django server as well). I have updated it to SVN 6906 (newest at this time), because I wanted to use the ModelForm, but unfortunately: Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on l