On Sat, Oct 18, 2008 at 12:59 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> I am having trouble importing, 'form_for_model'
>
> -I am using Django 1.0
> -I know that newforms has been renamed to forms.
>
> What import statement should I use to include form_for_model?
>
> This one works on my hosting provider..
> "from django.newforms import form_for_model"
>
> But doesnt work on my local machine.
>
> I tried several variations of this including: "from django.forms
> import form_for_model"
> Any help is appreciated.
>

form_for_model was removed, you should use a ModelForm instead.  See:

http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Removedseveralmoredeprecatedfeaturesfor1.0

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to