Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#11180 closed (invalid)

django.contrib.comments/django.contrib.sites/django.contrib.admin don't cooperate on site_id

Reported by: jl6 Owned by: nobody
Component: contrib.comments 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

Description

I'm not certain what the underlying cause of this issue is, or whether the summary above is an accurate diagnosis, but this is what happens:

  1. Install django.contrib.sites
  2. Create a Site.
  3. Delete it.
  4. Install django.contrib.comments
  5. Leave a comment using a comment form.
  6. The comments don't show up in the admin.

I noticed that each comment was given site_id "1", even though that site had been deleted. Adding a new site, and changing its id directly in the database, was enough to "solve" this (i.e. the comments now show up in the admin).

Change History (2)

comment:1 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed

This is what the setting, SITE_ID is for. Please don't use the ticket tracker for asking support questions, use either #django on freenode, or the django-users mailing list.

comment:2 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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