On 16-8-2012 2:33, Gregory Strydom wrote:
> Hi all , great to be here.

Welcome.

> I just have a very simple question if thats ok. I am quite new to Django 
> but am enjoying it very much, but seem to be struggling with templates.  Im 
> sure this is a simple question but could anyone please tell me where do you 
> place context that you define for your templates?

It's covered in the tutorial quite extensively:
<https://docs.djangoproject.com/en/1.4/intro/tutorial03/#write-views-that-actually-do-something>

For class-based views:
<https://docs.djangoproject.com/en/1.4/ref/class-based-views/#django.views.generic.detail.SingleObjectMixin.get_context_data>
<https://docs.djangoproject.com/en/1.4/ref/class-based-views/#django.views.generic.list.MultipleObjectMixin.get_context_data>

Also mentioned in the tutorial:
<https://docs.djangoproject.com/en/1.4/intro/tutorial04/#use-generic-views-less-code-is-better>


-- 
Melvyn Sopacua

-- 
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