I want to add an additional dictionary to userena's profile detail view, but I cant figure out how to add extra_context
to the view in my urls.py. The error is VariableDoesNotExist
:
thing_list = {
'queryset' : Thing.objects.all(),
'template_object_name' : 'thing',
}
from userena import views as userena_views
url(r'^(?P<username>(?!signout|signup|signin)[\.\w-]+)/$',
userena_views.profile_detail,
{'extra_context':{'thing_list': thing_list}},
name='userena_profile_detail'),
I am basing this on the answer to this SO question:
Adding extra_context in Django logout built-in view
Thanks for your ideas!