Hey there,

newforms was renamed to forms for the Django 1.0 release, this is the
reason why the statement "from django import newforms as forms"
doesn't work (because newforms does not exist anymore). Anywhere you
see newforms you can probably replace with forms. What tutorials are
you reading? If they are the official Django tutorials that is most
likely a bug in the documentation.

The documentation on the deprecation of newforms in favor of form is
in the Django 1.0 release notes at: 
http://docs.djangoproject.com/en/dev/releases/1.0/

Cheers,

Dan Harris
dih0...@gmail.com

On Jun 8, 3:46 pm, refreegrata <refreegr...@yahoo.com> wrote:
> hello list
> i'm a newbie with django trying to learn
> Now i have a question
> when i do
> -------------------------------------------------------
> from django import newforms as forms
> --------------------------------------------------------
> django throw an exception : "Error was: cannot import name newforms"
>
> But when i do
> -------------------------------------------------------
> from django import forms
> -------------------------------------------------------
> all works fine
>
> Mi question is, in all tutorial that i read, the writter say something
> like "the recommended way to import is 'from django import newforms as
> forms'".
>
> Why this way don't work now?.In the last version of Django newforms
> was replaced for form?. I can't find nothing in the official
> documention.
>
> Mi PC have Django 1.2.1(the latest stable version)
>
> That's my question. Thank's all. And sorry for my poor english, the
> english isn't my mother language.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to