[Answered ]-Problem with Adding/Editing inline Foreign Key Fields in Django Admin


I’m not sure what you have set up wrong. However, the error message should be the clue. At some point you’ve created a userprofile for User X and then you’ve tried to create another. It’s important to note that django does not autocreate profiles for users so this has to be code that you’ve written.

Without seeing code I’m just shooting in the dark here though. Keep in mind their are multiple ways you could be creating these profiles such as perhaps you registered the post_save signal on the user model.

As for tracing:

Or for some cool after the fact crash debugging you could try http://packages.python.org/django-extensions/ with it’s implementation of the werkzeug debugger build in http://packages.python.org/django-extensions/runserver_plus.html


Leave a comment