urls.py
url(r'^(?i)(?P<slug>[a-zA-Z0-9_]+)$', views_search.index, name='articles'),
context_processor.py
def get_username(request, **kwargs):
print kwargs
slug = kwargs.get('slug')
return {
'slug': slug
}
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 ?