Opened 8 years ago

Closed 8 years ago

#4482 closed (fixed)

feeds depend on django.contrib.sites

Reported by: keegan.csmith@… Owned by: adrian
Component: contrib.syndication Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:2 Changed 8 years ago by Matt McClanahan <cardinal@…>

  • Resolution wontfix deleted
  • Status changed from closed to reopened

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

  • Resolution set to fixed
  • Status changed from reopened to closed
  • Version changed from 0.96 to SVN

This requirement has been removed in [5654]

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