Thanks guys, that fixed the problem. On Wed, Oct 8, 2008 at 6:37 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > > Rishabh Manocha wrote: >> On Wed, Oct 8, 2008 at 5:07 PM, Chris <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> >> I installed django-registration via easy_install, and followed the >> directions for setting it up in my app, but when I go to /register, I >> get the error: >> >> File "/usr/lib/python2.5/site-packages/django_registration-0.5- >> py2.5.egg/registration/views.py", line 12, in <module> >> >> File "/usr/lib/python2.5/site-packages/django_registration-0.5- >> py2.5.egg/registration/forms.py", line 7, in <module> >> >> ImportError: cannot import name newforms >> [...] >> >> >> The problem most probably is that the version of django-registration >> you have installed via easy_install is not the latest version >> available - and hence is probably doing an import like "from django >> import newforms as forms" (or something like that) in forms.py. >> "newforms" was renamed to "forms" at some point before the 1.0 release >> and so python is unable to import "newforms". The latest version(in >> trunk) seems to have fixed this[1]. >> >> Uninstall the version you have installed via easy_install and grab the >> latest tar from the official site - >> http://code.google.com/p/django-registration/. >> > I believe I installed from SVN quite recently and discovered that > newforms was still used. James Bennet recently pointed out he hadn't yet > had time to 1.0-ify all his contributions. The only change i had to make > was changing > > import newforms as forms > > to > > import forms > > regards > Steve > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---