Opened 11 years ago

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


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.

Change History (3)

comment:1 Changed 11 years ago by anonymous

Has patch: unset

comment:2 Changed 10 years ago by Simon Greenhill

Triage Stage: UnreviewedAccepted

comment:3 Changed 10 years ago by James Bennett

Resolution: invalid
Status: newclosed

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.

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