title: ChangeEmailView() got an unexpected keyword argument 'token'
body: <p>I'm trying to make an url with an value from the views in it</p>
  <pre><code>    path('settings/email/changeemail/&lt;str:token&gt;', views.ChangeEmailView , name=&quot;changeemail&quot;),
  </code></pre>
  <p>but this error appears if i enter the page:</p>
  <pre><code>Internal Server Error: /settings/email/changeemail/0fdb9ef1-ce86-482e-a8ef-3fc202438ba9
  Traceback (most recent call last):
   File &quot;C:\Users\Finn\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\exception.py&quot;, line 47, in inner
     response = get_response(request)
   File &quot;C:\Users\Finn\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\base.py&quot;, line 181, in _get_response
     response = wrapped_callback(request, *callback_args, **callback_kwargs)
   File &quot;C:\Users\Finn\AppData\Local\Programs\Python\Python39\lib\site-packages\django\contrib\auth\decorators.py&quot;, line 21, in _wrapped_view
     return view_func(request, *args, **kwargs)
  TypeError: ChangeEmailView() got an unexpected keyword argument 'token'
  </code></pre>
  <p>this is my views.py</p>
  <pre><code>@login_required(login_url='home:login')
  def ChangeEmailView(request):
          if request.method == 'POST':
              objects = User.objects.get(email = request.user.email)
              form = EmailChangingForm(request.POST, instance=objects)
              packet = get_object_or_404(TempUrl, user=request.user)
              token = packet.uid
              if form.is_valid():
                  form.save()
                  
              return redirect('home:profilesettings')
              
          else:
              objects = User.objects.get(email = request.user.email)
              form = EmailChangingForm(request.POST, instance=objects)
              packet = get_object_or_404(TempUrl, user=request.user)
              token = packet.uid
          context = {'form': form, 'token': token}
          return render(request, 'home/email_settings.html', context)
  </code></pre>
  <p>in the end I want to have an unique url from which the token is saved in the db</p>
  <p>heres the other view where the uuid is generated and put to the db</p>
  <pre><code>def load_url(request):
     token = uuid.uuid4()
     objects = TempUrl.objects.update_or_create(user = request.user, uid=token, used=False)
     print(&quot;Das ist der Token:&quot; + str(token))
  
     context = {'token': token}
  
  
  
     return render(request, 'home/changeemail_pre.html', context)
  </code></pre>