Opened 13 years ago

Closed 13 years ago

#2157 closed defect (fixed)

admin/doc/views/ depends on django.contrib.sites

Reported by: HolgerSchurig Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

I have no use to for django.contrib.sites, as I don't want to maintain more than one site with my django. So this app is not in my INSTALLED_APPS. But when I now access, I get this traceback:

Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/django/core/handlers/" in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.3/site-packages/django/contrib/admin/views/" in _checklogin
  54. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.3/site-packages/django/contrib/admin/views/" in view_index
  106. views.append({
File "/usr/lib/python2.3/site-packages/django/db/models/" in get
  66. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.3/site-packages/django/db/models/" in get
  202. obj_list = list(clone)
File "/usr/lib/python2.3/site-packages/django/db/models/" in __iter__
  94. return iter(self._get_data())
File "/usr/lib/python2.3/site-packages/django/db/models/" in _get_data
  412. self._result_cache = list(self.iterator())
File "/usr/lib/python2.3/site-packages/django/db/models/" in iterator
  163. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
File "/usr/lib/python2.3/site-packages/django/db/backends/" in execute
  12. return self.cursor.execute(sql, params)
File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/" in execute
  77. return Database.Cursor.execute(self, query, params)

  OperationalError at /admin/doc/views/
  no such table: django_site

Change History (3)

comment:1 Changed 13 years ago by Adrian Holovaty

Description: modified (diff)
priority: normallow

comment:2 Changed 13 years ago by Adrian Holovaty

Status: newassigned

comment:3 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: assignedclosed

(In [3213]) Fixed #2157 -- Admin doc views now work if django.contrib.sites isn't installed

Note: See TracTickets for help on using tickets.
Back to Top