Это видео недоступно.
Сожалеем об этом.
Count the unique visitors to your Django site || Get IP address in django
HTML-код
- Опубликовано: 1 июл 2020
- COUNT UNIQUE VISITORS IN YOUR DJANGO WEBSITE || A MANUAL TRICK IN DJANGO TO COUNT UNIQUE VISITORS
In this video i have explain how to count unique visitors in your #django website
also know how to get user #ip adress
create your own analytics in Django website
know your visitors in django #website
this trick for all beginners and for all
follow the steps
i have checked in shared hosting
don't worry a simple manual trick to django website
a lot of concept you will know
our model just save unique users ip adress
if again ip match then users in not unique
so in this way it will work
function of get ip adress.............
*****
more videos :
how to run django on cpanel:
• How to run Django on c...
how to run your django project on shared hosting cpanel:
• How to run your django...
how to get free ssl:
• ZeroSSL | How to get f...
free download django website about poll app:
• Django poll app || fre...
django admin tutorial :
• django admin tutorial ...
• Django admin tutorial ...
• Django admin tutorial ...
how to run django in cpanel python latest version and sqlite3
( sqlite 3.8.3 or later is required solved)
• How to run django in C...
music credits :
Happy Life by FREDJI / fredjimusic
/ fredjimusic
Music promoted by Audio Library • Happy Life - FREDJI (N...
i have used no copyright music : • Happy Life - FREDJI (N...
subscribe to support the channel
LIKE || SHARE || SUBSCRIBE
Nice and helpful tutorials
thanks for the tutorial, it's helpful :)
Man you are awesome. Thank you
I think to use counter for make a list of trend products. But for call these products I need to use,
trends_objects = Product.objects.filter(-visit_counter).
Can you give me an idea of how can use it like that, please?
Do I need to create a function in below my Product model named visit_counter?
I will share in here if i can
getting this error can you help :-)
FieldError at /
Cannot resolve keyword 'user_icontains' into field. Choices are: id, user
and what will happen if the visitor is not a registered user?
good but not perfect because it only catches ip address , if two or more users views a page with same ip address then views are still the same
any solution regarding this for unique user
@@sandipsandal there are many ways , one of simplest way is create a model with foreign key field of post and charfield of user ,
if user view a post then add the username of user to user field and current post to post field ,
if user is not authenticated then add ip address of user to user field,
and then simply user.count() gives u the views on post
if request.ip == visited_ip:
counter +=1
??
This is just foo logic. Not harder to solve
sir make trending post according to visitors count
Where i can get this source code
Sr IP to change ho jati hai jitni br net band hoke start hota hai... To same user dubara aayega to wo to fir se ip lelega
Toh bro tumhe konsa NASA ka system banana hai jo itna precision dundh rahe ho.... And one more thing yeh kaam kar raha hai
Source codes please