I'm trying to convert a Django 1.2 site to a 1.4 site. So there's lots of
changing old generic views to class-based generic views, and the apps all
go up one level so lots of changes to imports, but in each case so far it's
it's been quite easy to narrow down the problem to a line in my code, and
fix it. Until I got to this:
ValueError at /
dictionary update sequence element #0 has length 1; 2 is required
Request Method: GET Request URL: http://www.crompton-saage.com/ Django
Version: 1.4.1 Exception Type: ValueError Exception Value:
dictionary update sequence element #0 has length 1; 2 is required
Exception Location:
/home/cassidy/webapps/crompton/lib/python2.7/django/core/urlresolvers.py
in resolve, line 207 Python Executable: /usr/local/bin/python Python
Version: 2.7.3 Python Path:
['/home/cassidy/webapps/crompton',
'/home/cassidy/webapps/crompton/crompton',
'/home/cassidy/webapps/crompton/lib/python2.7',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages/PIL']
Server time: Sun, 7 Oct 2012 19:03:37 +0800
Request URL: http://www.crompton-saage.com/
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.comments',
'django.contrib.flatpages',
'accounts',
'machines',
'sales')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
Traceback:
File
"/home/cassidy/webapps/crompton/lib/python2.7/django/core/handlers/base.py"
in get_response
101. request.path_info)
File
"/home/cassidy/webapps/crompton/lib/python2.7/django/core/urlresolvers.py"
in resolve
300. sub_match = pattern.resolve(new_path)
File
"/home/cassidy/webapps/crompton/lib/python2.7/django/core/urlresolvers.py"
in resolve
207. kwargs.update(self.default_args)
Exception Type: ValueError at /
Exception Value: dictionary update sequence element #0 has length 1; 2 is
required
So basically I have have no clue what part of *my* code could be causing
this as there's no reference to my code. How would I find out how to trace
this back to something I can change. I imagine I can pore through the
Django sources but I'm not really a Python programmer, I just know enough
syntax to write Django code.
Any ideas?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/tr_lPLJq3OsJ.
To post to this group, send email to django-users@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.