I can't find anywhere in the django docs where it says that
django.contrib.auth uses django.contrib.sites, but when I run my unit
tests I get this

======================================================================
ERROR: test_current_site_in_context_after_login
(django.contrib.auth.tests.views.LoginTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/contrib/auth/tests/views.py", line 191, in
test_current_site_in_context_after_login
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/contrib/sites/models.py", line 22, in get_current
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/manager.py", line 120, in get
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/query.py", line 300, in get
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/query.py", line 81, in __len__
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/query.py", line 238, in iterator
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/sql/query.py", line 287, in results_iter
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/models/sql/query.py", line 2369, in execute_sql
  File "/var/tmp/Django-1.1.1-root/usr/lib/python2.4/site-packages/
django/db/backends/sqlite3/base.py", line 193, in execute
OperationalError: no such table: django_site

----------------------------------------------------------------------
Ran 45 tests in 22.375s

FAILED (errors=1)

I don't need the sites app, but it looks like auth needs it. Is that
correct?

It would be nice to just supress this test from running...

Thanks,
Mike
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to