Pages
Categories
Popular Posts
-
Blogs I Follow:
- Victoria Mui - Blog
Close preview
Loading... - Frank Macchia - Allow Me To Be Frank
Close preview
Loading... - Greg Wilson - The Third Bit
Close preview
Loading... - Mike Yoo - Living as Minhoon
Close preview
Loading... - Brian Shim - Now & Then
Close preview
Loading... - Stephen Khuu := Steve Khuu
Close preview
Loading... - Sensorial'Org
Close preview
Loading... - Seriously? @Pi/Pi
Close preview
Loading... - Misa - Trails...
Close preview
Loading... - RecodeDesk
Close preview
Loading...
- Victoria Mui - Blog
-
RSS Links
-
Meta
Django Unit Test Failure in auth Package
We’ve been using the
django.contrib.authapp 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 theauthpackage 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‘sINSTALLED_APPvariable. Apparently, all you have to do is adddjango.contrib.admintoINSTALLED_APPmake all the unit tests pass.Sigh, well at least I got a new feature in!