Thanks for this video. It will help beginners a lot.
@haitech7895 Жыл бұрын
I already knew signals and i already type what you typed, the problem is i want to know if the user quite the browser whitout logging out; i want to if the user online or not based on his activity, i was wondring if a create an ajax code send to server every lets say 2 seconds a request to know if the user is visiting any page of the project, if not then he is offline, the problem of that solution is that i have to write that ajax code in every page of the project. I don't want to recreate the wheel and I know that r is a solution for this issue , but i cant find it
@vivekgautam23009 ай бұрын
will this fn work when user is logging in and out through api's
@vaishnavsivadas37554 жыл бұрын
hiii @Yiqing Lan i have to track the user date and time in an existing project . the user models are already there in models.py . so how can i use those fields and implement this? can i import that model data fields in this signals.py file and implement this signals??
@yiqinglan90094 жыл бұрын
Hi Vaishnav. It seems that you make custom user model rather than Django default auth User. If that's the case, it's a bit more complicated. One idea is to use middleware where you can bind custom User instance with request object.
@vaishnavsivadas37554 жыл бұрын
hiii @Yiging Lan , are u experience with mongodb!? and can i have ur mail id or something?
@hamzazahidulislam34904 жыл бұрын
hello sir can you give me the repository link i want to try it