from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AuthenticationForm
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AuthenticationForm
from django.core.cache import cache
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.core.cache import cache
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from catalogue.models import Book, Collection, Tag, Fragment
from social.utils import get_or_choose_cite
from catalogue.models import Book, Collection, Tag, Fragment
from social.utils import get_or_choose_cite
class LoginFormView(AjaxableFormView):
form_class = AuthenticationForm
template = "auth/login.html"
class LoginFormView(AjaxableFormView):
form_class = AuthenticationForm
template = "auth/login.html"