Django — django.contrib.auth Login Issues: Site._meta.installed / Site matching query does not exist

Well, I wondered what happened here and googling was futile.

Was getting errors on django.contrb.auth.views.login

If Site._meta.installed:
current_site = Site.objects.get_current()

After reading into what that does, it pulls SITE_ID out of your settings to check what db to look into. Well, my django project had a SITE_ID of 2 from many months ago.

Simply changed that to one and problem fixed.

4 thoughts on “Django — django.contrib.auth Login Issues: Site._meta.installed / Site matching query does not exist

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s