Re: Error changed - I am still stuck

2011-10-16 Thread Piotr Hosowicz
I didn't change anything pertaining DB in the model, so it wasn't necessary, but done that and nothing is better :-( -- 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 unsubscri

Re: Error changed - I am still stuck

2011-10-16 Thread Piotr Hosowicz
And this is from 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)) Regards, Piotr H

Error changed - I am still stuck

2011-10-16 Thread Piotr Hosowicz
't exist and it's true, there is only id column, I have the joins defined in people_phones table. Please help me, I am terribly ill and would like to do something positive. Regards, Piotr Hosowicz -- You received this message because you are subscribed to the Google Groups "Django user

Re: Don't understand still

2011-10-15 Thread Piotr Hosowicz
models.BooleanField(default=False) > > Does that help at all? Unfortunately not, doesn't help. :-( > You might also try putting some debugging into your template to see if > you're getting the results you think you are: > >     {% for piplok in camppeople %} >         {

Re: Don't understand still

2011-10-15 Thread Piotr Hosowicz
On 15 Paź, 17:40, Piotr Hosowicz wrote: > Carlos, of course I have data in the DB. Babatunde, the managers is > the thing that my friend, local Django guru, didn't answer me. I > believe you are right, I just copied the manager with empty body from > previous pieces of code that

Re: Don't understand still

2011-10-15 Thread Piotr Hosowicz
Carlos, of course I have data in the DB. Babatunde, the managers is the thing that my friend, local Django guru, didn't answer me. I believe you are right, I just copied the manager with empty body from previous pieces of code that worked. I'll try it, thanks a lot. Regards, Piot

Re: Don't understand still

2011-10-15 Thread Piotr Hosowicz
models > into a context. Check and holla back. See my code above, I supply camppeople context to the template machinery. At least I thought so. Please help and thanks for you two, Regards, Piotr Hosowicz -- You received this message because you are subscribed to the Google Groups "

Re: Don't understand still

2011-10-15 Thread Piotr Hosowicz
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 -- Yo

Don't understand still

2011-10-15 Thread Piotr Hosowicz
he template I have: {% for piplok in camppeople %} {% if piplok.docall %} {{ piplok.person.label }} {{ personphones.phone }} {% else %} NOT {% endif %} {% endfor %} And I do not see any row output. Please help, Regards, Piotr Hosowicz -- You received this messa

Re: Clearly I do not understand something in templating

2011-10-15 Thread Piotr Hosowicz
{% if piplo.docall %} Yeah, this was it! Thanks a lot. I see that there is a lot of learning in front of me. Thanks, 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@goog

Clearly I do not understand something in templating

2011-10-15 Thread Piotr Hosowicz
template : {% for piplok in camppeople %} {% if piplok.camppeople.docall %} YES {% else %} NOT {% endif %} {% endfor %} The records surely have all the record docall set to true but I see full of NOTs in the browser. Why? What should I do to see full of YESes. Regards, Piotr Hosowicz

Re: Something wrong in the model ot template - my Christmas wishes list

2011-10-14 Thread Piotr Hosowicz
SOLVED I think. I should have had : 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)) in views.py. -- You received this mes

Something wrong in the model ot template - my Christmas wishes list

2011-10-14 Thread Piotr Hosowicz
x27;ll supply it. Please help, I am new to Django. Thanks in advance. 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

Re: Please help to get templates working at all

2011-10-13 Thread Piotr Hosowicz
ponse("campaigns.html", ctx, > context_instance=RequestContext(request)) This is exactly what I missed. Thanks a lot and merry Christmas. Piotr Hosowicz -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: Please help to get templates working at all

2011-10-13 Thread Piotr Hosowicz
ponse("campaigns.html", ctx, > context_instance=RequestContext(request)) This is exactly what I missed. Thanks a lot and merry Christmas. Piotr Hosowicz -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Please help to get templates working at all

2011-10-13 Thread Piotr Hosowicz
on friend that usually helped me is too busy nowadays. And Merry Christmas to all :-) 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@googlegroup