Opened 19 years ago

Closed 19 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 http://127.0.0.1/admin/doc/views/, I get this traceback:

Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/django/core/handlers/base.py" in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.3/site-packages/django/contrib/admin/views/decorators.py" in _checklogin
  54. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.3/site-packages/django/contrib/admin/views/doc.py" in view_index
  106. views.append({
File "/usr/lib/python2.3/site-packages/django/db/models/manager.py" in get
  66. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py" in get
  202. obj_list = list(clone)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py" in __iter__
  94. return iter(self._get_data())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py" in _get_data
  412. self._result_cache = list(self.iterator())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py" 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/util.py" in execute
  12. return self.cursor.execute(sql, params)
File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/base.py" 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 by Adrian Holovaty, 19 years ago

Description: modified (diff)
priority: normallow

comment:2 by Adrian Holovaty, 19 years ago

Status: newassigned

comment:3 by Adrian Holovaty, 19 years ago

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