1 from django.core.context_processors import csrf
2 from django.shortcuts import render_to_response
4 from django.views.generic.base import TemplateView
5 from unfold.loginrequired import FreeAccessView
7 class LoginWidget(FreeAccessView):
9 def get(self, request):
11 env.update(csrf(request))
12 return render_to_response("loginwidget.html", env)