It took a couple of days, but I finally got all my projects switched
to new forms admin. It is so powerful. I cannot wait to see wait to
see what kinds of things I will be ablt to accomplish.
That being said, of course, I need to switch some of the snippets of
code that I barrowed from people smarter than me. One such person is
Jame Bennett and django-registration has been an invaluable tool. One
of the sites I switched uses that code, and I went into models and
tried my hardest to find and replace all the code that has changed.
The admin works fine database looks good and the shell seems to be in
order too on the simple tests that I run. I am just having one error
that I just can't figure out (thus I am still at work at 11:30). Here
is the error I am getting on any registration page:
URI: '/registration/registration'
Location: '/'
Directory: None
Filename: '/var/www/vhosts/development/registration'
PathInfo: '/registration'
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 188, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 161, in __call__
response = self.get_response(request)
File "/usr/lib/python2.5/site-packages/django/core/handlers/
base.py", line 64, in get_response
response = middleware_method(request)
File "/usr/lib/python2.5/site-packages/django/middleware/common.py",
line 57, in process_request
urlresolvers.resolve(request.path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py",
line 292, in resolve
return get_resolver(urlconf).resolve(path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py",
line 233, in resolve
sub_match = pattern.resolve(new_path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py",
line 231, in resolve
for pattern in self.urlconf_module.urlpatterns:
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py",
line 255, in _get_urlconf_module
raise ImproperlyConfigured, "Error while importing URLconf %r: %s"
% (self.urlconf_name, e)
ImproperlyConfigured: Error while importing URLconf
'registration.urls': cannot import name UserCreationForm
Any one who has any insight as to what this error means or experience
with django-registration in newforms admin and would care to share it,
I would be very grateful. I found this ticket
http://code.djangoproject.com/ticket/6572
, but I assume it is my code and not a bug. Thanks in advance.
Michael Newman