Re: simple friends template help

2015-02-02 Thread Pawan Kumar
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

Re: simple friends template help

2011-03-28 Thread justin jools
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

Re: simple friends template help

2011-03-28 Thread justin jools
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

Re: simple friends template help

2011-03-28 Thread Joel Goldstick
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

Re: simple friends template help

2011-03-28 Thread mike171562
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

django-simple-friends template help

2011-03-27 Thread justin jools
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

simple friends template help

2011-03-27 Thread justin jools
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