if table site is not created contrib.auth.views.login raise exception
|Reported by:||mconte||Owned by:||Jacob|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When django.contrib.sites is not in your INSTALLED_APPS. That means: table is not generated (Which is my case) login() from contrib.auth.views raise table not found exception.
I'm attaching one patch to solve this issue, adding a generic site class [This is the same way used in others views]