Opened 16 years ago

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

Description

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 16 years ago.
The error page

Download all attachments as: .zip

Change History (3)

by jobcello, 16 years ago

The error page

comment:1 by Collin Grady, 16 years ago

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 by Thejaswi Puthraya, 16 years ago

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