i do my site, there is something wrong with extra_context
i define the url processer in urls.py follow as:
url(r'^$', 'simple.direct_to_template',
        kwargs={'template': 'index.html','extra_context':
{'item_list': lambda: Item.objects.all()}},name = 'index'),

and in my template , when render my template, 'item_list'  cann't  be
recongnized
it encounter exception follow as:
'Caught an exception while rendering: global name 'self_id' is not
defined'

i want to know how to solute the problem

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

Reply via email to