django social login with github issue

19 views
Skip to first unread message

DJANGO DEVELOPER

unread,
Mar 10, 2021, 5:24:24 PM3/10/21
to Django users
hi I need a little help related to social login via github.
everything is working fine but when user login through github and github redirects to user to home page then I want to display the github's username on front-end. but my program is not showing the username.
Note: When I try {{request.user}} then it displays admin username, which shouldn't be displayed. but when I try {{user.username}} then it displays nothing.
Can anyone help me? it is just a matter of 5 minutes if someone is experienced in it.

Kasper Laudrup

unread,
Mar 10, 2021, 5:47:04 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 23.00, DJANGO DEVELOPER wrote:
> Can anyone help me? it is just a matter of 5 minutes if someone is
> experienced in it.
>

If you expect someone to spend five minutes of their time helping you,
then the least you could do would be to spend five minutes trying to
write a proper question giving people a chance to help you.

This seems like it might help you:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

Kind regards,

Kasper Laudrup

DJANGO DEVELOPER

unread,
Mar 10, 2021, 5:51:23 PM3/10/21
to django...@googlegroups.com
sorry for improper question.
but it is the question on stack over flow with my code.
https://stackoverflow.com/questions/66573665/github-social-login-in-django

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dde0d4b0-0258-6f96-4c18-529b889d79e9%40stacktrace.dk.

Kunal Solanke

unread,
Mar 10, 2021, 10:29:41 PM3/10/21
to django...@googlegroups.com
I'd have answered on stack itself but it seems kind of pointless to ask question to another queations there.ps I don't have rep to comment.

Anyways,  ques I have here is are you opening admin panel in same window?
If so open in incognito mode. 

Another are the user objects getting created in admin panel? 




Reply all
Reply to author
Forward
0 new messages