old_contents: from .models import Type
  from django.contrib.sites.models import RequestSite
  
  
  def types(request):
      return {'types': Type.objects.all()}
  
  def sites(request):
      return {'site': RequestSite(request)}
  
new_contents: from .models import Type
  from django.contrib.sites.models import RequestSite
  
  
  def types(request):
      return {'types': Type.objects.all()}
  
  
  def sites(request):
      return {'site': RequestSite(request)}
  
subject: Fix pep8