On Jan 5, 12:35 pm, Guy Nesher <[email protected]> wrote:
> Thanks,
>
> I've initially tried to use a dictionary but was still unable to pull
> the data in the template.
>
> I'm using your updated context processor:
> def swiss_context_processors(request):
>     added_context = { 'mytest': 'aaa', }
>     return added_context
>
> and trying to call {{added_context.mytest}} in the template which
> returns nothing


It should be just {{ mytest }}

Also note that a comma at the end is not necessary:

return {'mytest': 'aaa'} or even return dict(mytest='aaa')

 -ak

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to