old_contents: import subprocess
  from django.conf import settings
  from django.http import JsonResponse, HttpResponseBadRequest
  from django.shortcuts import redirect
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework.authtoken.models import Token
  
  
  @csrf_exempt
  def deploy(request):
      deploy_secret_key = request.POST.get('DEPLOY_SECRET_KEY')
      # branch = request.POST.get('BRANCH')
      commit = request.POST.get('COMMIT')
  
      if deploy_secret_key != settings.SECRET_KEY:
          return HttpResponseBadRequest('Incorrect key.')
  
      subprocess.Popen(['scripts/deploy.sh', commit], stdout=subprocess.PIPE)
      return JsonResponse({'result': 'deploy started'})
  
  
  def social_redirect(request):
      token, _ = Token.objects.get_or_create(user=request.user)
      return redirect('http://localhost:3000/finish-steam/{}'.format(token.key))
  
new_contents: import subprocess
  from django.conf import settings
  from django.http import JsonResponse, HttpResponseBadRequest
  from django.shortcuts import redirect
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework.authtoken.models import Token
  
  
  @csrf_exempt
  def deploy(request):
      deploy_secret_key = request.POST.get('DEPLOY_SECRET_KEY')
      # branch = request.POST.get('BRANCH')
      commit = request.POST.get('COMMIT')
  
      if deploy_secret_key != settings.SECRET_KEY:
          return HttpResponseBadRequest('Incorrect key.')
  
      subprocess.Popen(['scripts/deploy.sh', commit], stdout=subprocess.PIPE)
      return JsonResponse({'result': 'deploy started'})
  
  
  def social_redirect(request):
      token, _ = Token.objects.get_or_create(user=request.user)
      return redirect('http://dotateamfinder.com/finish-steam/{}'.format(token.key))
  
subject: Fix incorrect social redirect link