Code

Opened 6 years ago

Closed 6 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: UI/UX:

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

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by jobcello

The error page

comment:1 Changed 6 years ago by cgrady

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 6 years ago by thejaswi_puthraya

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.