Это видео недоступно.
Сожалеем об этом.

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

Комментарии • 16

  • @md.emdadulhaque5245
    @md.emdadulhaque5245 4 года назад

    Nice and helpful tutorials

  • @faatemehch96
    @faatemehch96 3 года назад

    thanks for the tutorial, it's helpful :)

  • @amanye
    @amanye 4 года назад

    Man you are awesome. Thank you

  • @enesyurtsever
    @enesyurtsever 3 года назад

    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

  • @ben_on_theory
    @ben_on_theory 3 года назад +1

    getting this error can you help :-)
    FieldError at /
    Cannot resolve keyword 'user_icontains' into field. Choices are: id, user

  • @enesyurtsever
    @enesyurtsever 3 года назад

    and what will happen if the visitor is not a registered user?

  • @BMEZainZahid
    @BMEZainZahid 4 года назад +1

    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

    • @sandipsandal
      @sandipsandal 4 года назад

      any solution regarding this for unique user

    • @BMEZainZahid
      @BMEZainZahid 4 года назад +1

      @@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

    • @enesyurtsever
      @enesyurtsever 3 года назад

      if request.ip == visited_ip:
      counter +=1
      ??
      This is just foo logic. Not harder to solve

  • @amanaryan8396
    @amanaryan8396 3 года назад

    sir make trending post according to visitors count

  • @gangadharsahoo5061
    @gangadharsahoo5061 3 года назад +2

    Where i can get this source code

  • @agranshuaggarwal3947
    @agranshuaggarwal3947 3 года назад

    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

    • @akkysprogramming4113
      @akkysprogramming4113 Год назад

      Toh bro tumhe konsa NASA ka system banana hai jo itna precision dundh rahe ho.... And one more thing yeh kaam kar raha hai

  • @unuefeejovwoke6609
    @unuefeejovwoke6609 Год назад

    Source codes please