Opened 17 years ago

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

Description

Using the documentation found here: http://www.djangoproject.com/documentation/authentication/#how-to-log-a-user-in, 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 by anonymous, 17 years ago

Has patch: unset

comment:2 by Simon Greenhill, 16 years ago

Triage Stage: UnreviewedAccepted

comment:3 by James Bennett, 16 years ago

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