title: Django Rest Framework - how to get Http header information in urls.py
body: <p>I am making a Django-based API and here is my urls.py.</p>
  
  <pre><code>from django.conf.urls import include, url
  
  api_version = "v1"
  
  urlpatterns = [
      url(r'^v1/', include( "api."+ api_version +".urls", namespace=api_version )),
  ]
  </code></pre>
  
  <p>What I want to do is to retrieve API version from http accept header.  I tried to use django.http.HttpRequest module, which didn't do the trick.</p>
  
  <p>Is there any way to achieve this? </p>