'send template data from signal in django
As soon as the django user_logged_in signal works, I want to send data to my template at that moment.I need to check if my signal is working.
from django.contrib.auth.signals import user_logged_in
@receiver(user_logged_in)
def post_login(sender, user, request, **kwargs):
isLogged = True
# base.html
I want to send this to 'isLogged= True' base.html I don't know if I can do this with context processor.I just want to send data to base.html file as soon as user logs in
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
