Can I access url kwargs in django template context processor?
<pre><code>urls.py

url(r'^(?i)(?P&lt;slug&gt;[a-zA-Z0-9_]+)$', views_search.index, name='articles'),
</code></pre>

<p>context_processor.py</p>

<pre><code>def get_username(request, **kwargs):
    print kwargs
    slug = kwargs.get('slug')
    return {
    'slug': slug
    }
</code></pre>

<p>But when i am running it, its printing empty dict and nothing is returned to the template. I have added this in template context processors in setting. How can I access kwargs here ?</p>