On Tue, Jun 8, 2010 at 3:46 PM, refreegrata <[email protected]> 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.
>
>
The tutorial you read was for a django before 1.0. django.newforms was moved
to django.forms for that release. If you see newforms in a tutorial, you can
assume those are just forms now.

Hope that helps,

Michael

-- 
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