We’ve been using the django.contrib.auth app to handle all of our user login/logout/registration/etc. needs, and it has worked great for us so far. However, when we tried to run the unit tests for our project we found 10 or so errors with regards to the auth package itself.
At first, I thought it was because we were missing required templates, so I implemented Change Password… to see if I could make some of the unit tests pass. That didn’t work.
So after a bit more googling, I finally found a bug related to my problem: http://code.djangoproject.com/ticket/7756
It turns out that I was missing a required app in my setup.py‘s INSTALLED_APP variable. Apparently, all you have to do is add django.contrib.admin to INSTALLED_APP make all the unit tests pass.
Sigh, well at least I got a new feature in!