Opened 16 years ago

Closed 16 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


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/" in get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/syndication/" in feed
  19. feedgen = f(slug, request.path).get_feed(param)
File "/usr/lib/python2.4/site-packages/django/contrib/syndication/" in get_feed
  67. current_site = Site.objects.get_current()
File "/usr/lib/python2.4/site-packages/django/db/models/" in get
  73. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/db/models/" in get
  250. obj_list = list(clone)
File "/usr/lib/python2.4/site-packages/django/db/models/" in __iter__
  108. return iter(self._get_data())
File "/usr/lib/python2.4/site-packages/django/db/models/" in _get_data
  470. self._result_cache = list(self.iterator())
File "/usr/lib/python2.4/site-packages/django/db/models/" 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/" in execute
  12. return self.cursor.execute(sql, params)
File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/" in execute
  93. return Database.Cursor.execute(self, query, params)

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

Change History (3)

comment:1 Changed 16 years ago by Matt McClanahan <cardinal@…>

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 Changed 16 years ago by Matt McClanahan <cardinal@…>

Resolution: wontfix
Status: closedreopened

comment:3 Changed 16 years ago by Matt McClanahan <cardinal@…>

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