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 say
I think I've resolved some of my problems:
I was wondering how to list friend request but now I think I have to
use Django-Notifications to pick up the signals, would this be right?
complete models:
class FriendshipRequest(models.Model):
from_user = models.ForeignKey(User,
related_name="inv
I now have a different overriding problem with this simple-friends
app:
url patterns are simple:
urlpatterns = patterns('friends.views',
url(r'^$',
'friend_list',
name='friends_home'),
url(r'^list/(?P\w+)/$',
'friend_list',
name='friend_list'),
url(r'^a
On Mon, Mar 28, 2011 at 12:14 PM, mike171562 wrote:
> Maybe you could use the ifequal tag in your template, not sure what
> your trying to do , but in your view you could do a friend =
> Friends.objects.all() and in your template,
>
> {% ifequal friend.isfriend True %}
> do something here
> {%endi
Maybe you could use the ifequal tag in your template, not sure what
your trying to do , but in your view you could do a friend =
Friends.objects.all() and in your template,
{% ifequal friend.isfriend True %}
do something here
{%endifequal%}
{% ifequal friend.is_invited %}
something else
{%endifeq
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 %}
target_user: {{ friends.target_user}}
current_user:{{ friends.current_user}}
are_frien
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 %}
target_user: {{ friends.target_user}}
current_user:{{ friends.current_user}}
are_frien
7 matches
Mail list logo