The Problem is: I had content types in my db without the corresponding
model class.
This happens, when you remove applications from your project or if you
delete some model class in your app.
There is a more detailed description in the german python-forum:
http://www.python-forum.de/topic-10510.html
I've hacked a standalone script to delete old entries in the tables
"django_content_type" and "django_content_type": http://paste.pocoo.org/show/1482/
This it not enough. Other tables must be still updated:
"auth_user_user_permissions", "auth_group_permissions", etc.
Should that not do syncdb? Perhaps with an additional parameter, e.g.:
"django-admin.py syncdb --cleanup=true"