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
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
'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
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 %}
> {
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
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
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
"
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
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
{% 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
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
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
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
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
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
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
16 matches
Mail list logo