old_contents: from django.shortcuts import render_to_response
  from django.contrib.auth.decorators import login_required
  from django.http import HttpResponse
  from django.contrib.auth.views import login as django_login
  from django.views.generic.simple import direct_to_template
  from session_csrf import anonymous_csrf
  
  from django.contrib.auth.models import User
  
  @anonymous_csrf
  def main(request):
      return direct_to_template(request, template="main.html")
  
  
  @login_required
  def edit(request, display_name=None):
      return direct_to_template(request, template="profiles_edit.html")
  
  
  def list_profiles(request):
      return render_to_response("profiles_people.html",
                                {'people' : User.objects.filter(is_active=True)}
                                )
  
  
  def view_profile(request, display_name):
      return direct_to_template(request, template="profiles_view.html")
  
  
  def invite(request):
      return direct_to_template(request, template="profiles_invite.html")
  
  
  @login_required
  def view_my_profile(request):
      return view_profile(request,
                          display_name=request.user.userprofile.display_name)
  
  
  @anonymous_csrf
  def plainlogin(request, template_name):
      return django_login(request, template_name=template_name)
  
  
  @anonymous_csrf
  def login(request):
      return direct_to_template(request, template='login.html')
  
new_contents: from django.shortcuts import render_to_response
  from django.contrib.auth.decorators import login_required
  from django.http import HttpResponse
  from django.contrib.auth.views import login as django_login
  from django.views.generic.simple import direct_to_template
  from session_csrf import anonymous_csrf
  
  from django.contrib.auth.models import User
  
  @anonymous_csrf
  def main(request):
      return direct_to_template(request, template="main.html")
  
  
  @login_required
  def edit(request, display_name=None):
      return direct_to_template(request, template="profiles_edit.html")
  
  
  def list_profiles(request):
      return render_to_response("profiles_people.html",
                                {'people' : User.objects.filter(is_active=True)}
                                )
  
  
  def view_profile(request, display_name):
      return direct_to_template(request, template="profiles_view.html")
  
  
  def invite(request):
      return direct_to_template(request, template="profiles_invite.html")
  
  
  @login_required
  def view_my_profile(request):
      return view_profile(request,
                          display_name=request.user.userprofile.display_name)
  
  
  @anonymous_csrf
  def plainlogin(request, template_name):
      return django_login(request, template_name=template_name)
  
subject: Remove depractated login view