Opened 18 years ago

Closed 17 years ago

#4482 closed (fixed)

feeds depend on django.contrib.sites

Reported by: keegan.csmith@… Owned by: Adrian Holovaty
Component: contrib.syndication Version: dev
Severity: 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

I dont use (and dont need) django.contrib.sites, so it is not in my INSTALLED_APPS. When I try access a feed I get the following traceback:

Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/syndication/views.py" in feed
  19. feedgen = f(slug, request.path).get_feed(param)
File "/usr/lib/python2.4/site-packages/django/contrib/syndication/feeds.py" in get_feed
  67. current_site = Site.objects.get_current()
File "/usr/lib/python2.4/site-packages/django/db/models/manager.py" in get
  73. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in get
  250. obj_list = list(clone)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in __iter__
  108. return iter(self._get_data())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in _get_data
  470. self._result_cache = list(self.iterator())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in iterator
  183. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
File "/usr/lib/python2.4/site-packages/django/db/backends/util.py" in execute
  12. return self.cursor.execute(sql, params)
File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py" in execute
  93. return Database.Cursor.execute(self, query, params)

  OperationalError at /feeds/global/
  no such table: django_site

Change History (3)

comment:1 by Matt McClanahan <cardinal@…>, 18 years ago

Resolution: wontfix
Status: newclosed

Correct, the syndication app makes use of the sites app for building URLs, and for providing some context to feed templates.

comment:2 by Matt McClanahan <cardinal@…>, 17 years ago

Resolution: wontfix
Status: closedreopened

comment:3 by Matt McClanahan <cardinal@…>, 17 years ago

Resolution: fixed
Status: reopenedclosed
Version: 0.96SVN

This requirement has been removed in [5654]

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