Opened 11 years ago

Closed 11 years ago

#9114 closed (wontfix)

admin of comments depends on table django_site

Reported by: jobcello Owned by: nobody
Component: contrib.comments Version: 1.0
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 started a new site, included 'django.contrib.comments', but left out the 'django.contrib.sites' from the INSTALLED_APPS.

I synced the db.

When trying to manage comments through the admin interface (URL: "http://localhost:8080/admin/comments/comment/"), got the error:

OperationalError at /admin/comments/comment/
no such table: django_site

To get this admin page working, I added 'django.contrib.sites' to the INSTALLED_APPS. Then I synced the db. Then I immediately commented that line ('django.contrib.sites') out from INSTALLED_APPS. In other words, just having the table in the db made it work.

Attachments (1)

OperationalError at admin comments comment .html (122.6 KB) - added by jobcello 11 years ago.
The error page

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by jobcello

The error page

comment:1 Changed 11 years ago by Collin Grady

well comments do have a ForeignKey to Site, so it stands to reason that the app has to be in use for comments to work right

comment:2 Changed 11 years ago by Thejaswi Puthraya

Resolution: wontfix
Status: newclosed

Well, the comments site doesn't depend on the table but the Site model as pointed out by cgrady. You could have problems later on if you continue to have the sites framework commented out because the comments app uses it.

The sites framework is a pre-requisite for the comments app. I am closing this as a won't fix because removing the sites framework would mean removing features from the comments app.

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