Opened 9 years ago

Closed 9 years ago

#2157 closed defect (fixed)

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

Reported by: HolgerSchurig Owned by: adrian
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: UI/UX:

Description (last modified by adrian)

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 9 years ago by adrian

  • Description modified (diff)
  • priority changed from normal to low

comment:2 Changed 9 years ago by adrian

  • Status changed from new to assigned

comment:3 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

(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