Hello, and welcome to Django. A long time ago, the original "forms" was removed and replaced with "newforms". To keep applications working during the transition, both "forms" and "newforms" were kept side-by-side for awhile. The idea was, after the transition was complete, you could simply change "import newforms as forms" to "import forms" and it would continue working.
So, yes, anytime you see "import newforms as forms" it is safe to replace it with "import forms". ==================================== Steven L Smith, Web Developer Department of Information Technology Services Nazareth College of Rochester 585-389-2085 | ssmit...@naz.edu http://www.naz.edu/pub/~ssmith46 ==================================== ----- Original Message ----- From: "refreegrata" <refreegr...@yahoo.com> To: "Django users" <django-users@googlegroups.com> Sent: Tuesday, June 8, 2010 3:46:46 PM GMT -05:00 US/Canada Eastern Subject: i can't import newforms(newbie) 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. -- 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.