old_contents: # -*- coding: utf-8 -*-
  from django.template import RequestContext
  from django.shortcuts import render_to_response
  from django.contrib.auth.decorators import login_required
  
  
  @login_required(login_url='/', redirect_field_name='')
  def home_search(request):
      return render_to_response(
          'home_search.html',
          context_instance=RequestContext(request)
      )
  
  def access_denied(request):
      return render_to_response(
          'access_denied.html',
          context_instance=RequestContext(request)
      )
  
  def user_belongs_to_groups(user, groups):
  	if user.groups.filter(name__in=groups).exists():
  		return True
  
  	return False
new_contents: # -*- coding: utf-8 -*-
  from django.template import RequestContext
  from django.shortcuts import render_to_response
  from django.contrib.auth.decorators import login_required
  
  
  @login_required(login_url='/', redirect_field_name='')
  def home_search(request):
      return render_to_response(
          'home_search.html',
          context_instance=RequestContext(request)
      )
  
  def user_belongs_to_groups(user, groups):
      if user.groups.filter(name__in=groups).exists():
          return True
      else:
          return False
subject: Delete unused function