Opened 6 years ago

Closed 6 years ago

#6865 closed (invalid)

Information to be added on "Site matching query does not exist." error when trying to log in a user

Reported by: run4yourlives@… Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Using the documentation found here:, one may run into the error: "Site matching query does not exist."

The solution is to add a site to your sites table from within the Admin interface. This should be added to the documentation to increase understanding.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

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

comment:2 Changed 6 years ago by Simon Greenhill

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 6 years ago by ubernostrum

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

If django.contrib.sites is in INSTALLED_APPS and you've run syncdb, you do have a Site object in your DB. If you've gone and deleted it manually, well, lots of things will break. Probably the best route is a separate issue -- adding a slightly stronger wording to the tutorial to indicate that messing with the defaults when you aren't aware of their dependencies is a bad idea.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.