Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create a simple view for sending request to other user #108

Closed
khaldon opened this issue Mar 9, 2020 · 1 comment
Closed

how to create a simple view for sending request to other user #108

khaldon opened this issue Mar 9, 2020 · 1 comment

Comments

@khaldon
Copy link

khaldon commented Mar 9, 2020

in my views.py I add that code to show all friend I should to return render or what should I do exactly
and also how to linked urls, views and template together and also how can use the template that builtin in django-friendship ??

def my_view(request):
    # List of this user's friends
    all_friends = Friend.objects.friends(request.user)
@frankwiles
Copy link
Member

This is really a question about how to use Django in general. You should go through the official Django tutorial to get a better understanding of how models, views, and urls all interact with each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants