old_contents: from django.http import HttpResponseRedirect
  from django.views import generic
  from django.shortcuts import render, reverse
  from django.contrib.auth import login, logout
  
  from .forms import SignupForm, SigninForm, UpdateForm
  from .models import User
  
  
  class ProfileView(generic.ListView):
      model = User
      template_name = 'user/profile.html'
  
  
  def signup(request):
      if request.user.is_authenticated():
          return HttpResponseRedirect(reverse('event:index'))
      if request.method == 'POST':
          form = SignupForm(request.POST)
          if form.is_valid():
              form.save()
              user = form.signin(request)
              if user is not None:
                  login(request, user)
                  return HttpResponseRedirect(reverse('event:index'))
          else:
              return render(request, 'user/signup.html', {'form': form, 'error': True})
      else:
          form = SignupForm()
      return render(request, 'user/signup.html', {'form': form})
  
  
  def signin(request):
      if request.user.is_authenticated():
          return HttpResponseRedirect(reverse('event:index'))
      if request.method == 'POST':
          form = SigninForm(data=request.POST)
          if form.is_valid():
              user = form.signin(request)
              if user is not None:
                  login(request, user)
                  return HttpResponseRedirect(reverse('event:index'))
          else:
              return render(request, 'user/signin.html', {'form': form, 'error': True})
      else:
          form = SigninForm()
      return render(request, 'user/signin.html', {'form': form})
  
  
  def signout(request):
      logout(request)
      return HttpResponseRedirect(reverse('event:index'))
  
  
  def update(request):
      if request.method == 'POST':
          form = UpdateForm(data=request.POST, instance=request.user)
          if form.is_valid():
              form.save()
          else:
              return render(request, 'user/profile.html', {'form': form, 'error': True})
      else:
          form = UpdateForm(instance=request.user)
      return render(request, 'user/profile.html', {'form': form})
  
new_contents: from django.http import HttpResponseRedirect
  from django.views import generic
  from django.shortcuts import render, reverse
  from django.contrib.auth import login, logout
  
  from .forms import SignupForm, SigninForm, UpdateForm
  from .models import User
  
  
  class ProfileView(generic.ListView):
      model = User
      template_name = 'user/profile.html'
  
  
  def signup(request):
      if request.user.is_authenticated():
          return HttpResponseRedirect(reverse('event:index'))
      if request.method == 'POST':
          form = SignupForm(request.POST)
          if form.is_valid():
              form.save()
              user = form.signin()
              if user is not None:
                  login(request, user)
                  return HttpResponseRedirect(reverse('event:index'))
          else:
              return render(request, 'user/signup.html', {'form': form, 'error': True})
      else:
          form = SignupForm()
      return render(request, 'user/signup.html', {'form': form})
  
  
  def signin(request):
      if request.user.is_authenticated():
          return HttpResponseRedirect(reverse('event:index'))
      if request.method == 'POST':
          form = SigninForm(data=request.POST)
          if form.is_valid():
              user = form.signin()
              if user is not None:
                  login(request, user)
                  return HttpResponseRedirect(reverse('event:index'))
          else:
              return render(request, 'user/signin.html', {'form': form, 'error': True})
      else:
          form = SigninForm()
      return render(request, 'user/signin.html', {'form': form})
  
  
  def signout(request):
      logout(request)
      return HttpResponseRedirect(reverse('event:index'))
  
  
  def update(request):
      if request.method == 'POST':
          form = UpdateForm(data=request.POST, instance=request.user)
          if form.is_valid():
              form.save()
          else:
              return render(request, 'user/profile.html', {'form': form, 'error': True})
      else:
          form = UpdateForm(instance=request.user)
      return render(request, 'user/profile.html', {'form': form})
  
subject: Remove request argument