You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the current user object in my templates after successfully logging in with Twitter but it's not working.
Here's what I'm trying to do in my templates:
Welcome, {{ request.user.first_name }}
I already have the "django.core.context_processors.request" on TEMPLATE_CONTEXT_PROCESSORS. I have already tested with no success putting it before and after:
'social.apps.django_app.context_processors.backends',
'social.apps.django_app.context_processors.login_redirect',
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
It happens you don't need to use "django.core.context_processors.request" to achieve that. The issue was that I was using "render_to_response" instead of "render".
It happens you don't need to use "django.core.context_processors.request" to achieve that. The issue was that I was using "render_to_response" instead of "render".
I'm trying to get the current user object in my templates after successfully logging in with Twitter but it's not working.
Here's what I'm trying to do in my templates:
Welcome, {{ request.user.first_name }}
I already have the "django.core.context_processors.request" on TEMPLATE_CONTEXT_PROCESSORS. I have already tested with no success putting it before and after:
'social.apps.django_app.context_processors.backends',
'social.apps.django_app.context_processors.login_redirect',
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: