title: Django views function skip urls keywords
body: <pre><code>#1. 
  path('&lt;str:lang&gt;/request/', views.request.get_request),
  
  #2. 
  LangMiddleware
  
  def process_view(self, request, view_func, view_args, view_kwargs):
      lang = view_kwargs.get('lang')
      settings.LANGUAGE_CODE = 'lang
  
      pass
  
  #3. 
  views.py ---&gt; def get_request(request): &lt;--- I don't want to put 'lang' param
  </code></pre>
  
  <p>I have a lang keyword in <code>urls</code>, this keyword only use inside of <code>LangMiddleware</code></p>
  
  <p>It don't need it inside of views, therefor I don't want to put keyword in every function.</p>
  
  <p>anyone know how to solve this?</p>