Yes your context is correct but the problem is with what the context
does contain.

Managers return querysets but yours does not do anything or return
anything. It will be very clear to you if you go to the django in
built shell and do PersonPhones.objects.all(). You'll find out that it
contains nothing so your context will also contain nothing which
explains why your template is empty.

On 10/15/11, Piotr Hosowicz <phosow...@gmail.com> wrote:
> On 15 Paź, 16:53, Carlos Daniel Ruvalcaba Valenzuela
> <clsdan...@gmail.com> wrote:
>> Perhaps the problem lies on the view code, are you passing the query data
>> to
>> the template? Is que query returning any data? Try posting the relevant
>> code
>> from your views.
>
> Here is the relevant part of views.py:
>
> def campaign(request, campaign_id):
>     ctx = {'phones': PersonPhones.objects.all(), "camppeople":
> CampPeople.objects.all() }
>     return render_to_response("campaign.html", ctx,
> context_instance=RequestContext(request))
>
> Please help me.
>
> Regards,
>
> Piotr Hosowicz
>
> --
> 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.
>
>

-- 
Sent from my mobile device

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