Hi Justin,
I'm relatively new to django and while using the django simple friend app i have bumped into the same issue as you.
I do not know how to tie back the views to templates so the results are visually appreciated.
would you be able to help me out?
I want to see a template or page saying "you have sent a friend request to X" when i use http://127.0.0.8800/add/X@gmail.com url
Please let me know what you think.
Thanks,
Pawan
On Monday, March 28, 2011 at 6:02:52 AM UTC+5:30, justin jools wrote:
-- I'm relatively new to django and while using the django simple friend app i have bumped into the same issue as you.
I do not know how to tie back the views to templates so the results are visually appreciated.
would you be able to help me out?
I want to see a template or page saying "you have sent a friend request to X" when i use http://127.0.0.8800/add/X@gmail.com url
Please let me know what you think.
Thanks,
Pawan
On Monday, March 28, 2011 at 6:02:52 AM UTC+5:30, justin jools wrote:
need some help setting up templates for friends list:
how do I iterate a list of invited friends and are friends? I have
tried:
{% for friends in Friendship.objects.are_friends %}
<li>target_user: {{ friends.target_user}}</li>
<li>current_user:{{ friends.current_user}}</li>
<li>are_friends: {{ friends.are_friends}}</li>
<li>is_invited: {{ friends.is_invited}}</li>
{% endfor %}
gives me nothing but:
<li>{{ is_invited }}</li>
<li>{{ are_friends }}</li>
<li>{{ target_user }}</li>
<li>{{ current_user }}</li>
output:
false
false
name
name
I have been trying to figure this out for months. Please help.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7e1f2a0f-39b4-4bcf-9222-ea8b11c66474%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment