How to Track User Activity through Django Login

  Рет қаралды 12,319

Yiqing Lan

Yiqing Lan

Күн бұрын

Пікірлер: 8
@dhananjaywadhavane4106
@dhananjaywadhavane4106 4 жыл бұрын
Thanks for this video. It will help beginners a lot.
@haitech7895
@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
@vivekgautam2300
@vivekgautam2300 9 ай бұрын
will this fn work when user is logging in and out through api's
@vaishnavsivadas3755
@vaishnavsivadas3755 4 жыл бұрын
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??
@yiqinglan9009
@yiqinglan9009 4 жыл бұрын
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.
@vaishnavsivadas3755
@vaishnavsivadas3755 4 жыл бұрын
hiii @Yiging Lan , are u experience with mongodb!? and can i have ur mail id or something?
@hamzazahidulislam3490
@hamzazahidulislam3490 4 жыл бұрын
hello sir can you give me the repository link i want to try it
@yiqinglan9009
@yiqinglan9009 4 жыл бұрын
Hi there, I just updated in video description.
How to add AdminLTE3 into Django2
21:26
Yiqing Lan
Рет қаралды 29 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Django Tutorial - User Registration with Email Confirmation #15
21:28
Python Lessons
Рет қаралды 44 М.
Django Tutorial - Login, Logout and User Authentication
13:44
Tech With Tim
Рет қаралды 133 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 980 М.
How to Upload an Image Using Django ImageField (The RIGHT Way)
20:03
Multiple User Types | Django
21:13
Daniel Roy Greenfeld
Рет қаралды 57 М.
Django Channels & WebSockets Oversimplified
16:35
Dennis Ivy
Рет қаралды 147 М.
Custom User Model | Explore Django
14:01
Code With Stein
Рет қаралды 42 М.
Hack your brain with Obsidian.md
11:53
No Boilerplate
Рет қаралды 2 МЛН