Skip to main content

A simple counter to keep a record of number of visitors who visit your website.

Project description


made-with-python PyPI - Python Version GitHub last commit PyPI version GitHub issues PyPI - Wheel PyPI license

EasyVisitors is a simple to use Django App that counts website visitors and displays them without any hassles. It uses cookies to keep a track of how many people visited you website and doesnot increments simply upon a refresh unlike other simple counters.

  • Easy to use
  • Easy to setup
  • Easy to configure
  • Easy to customize


Installation is same for virtualenv and non virtualenv (because it is that simple XD)

> pip install EasyVisitors


In of your django project -


Getting Started

It is a local counter so it is necessary to create some space for recording it's values in the database. But no worries all of it has been taken care off. You just have to run -

> python makemigrations EasyVisitors
> python migrate EasyVisitors

This will create a simple table to store the values of the counter in the database. This step is very important as without these migrations the app wont be able to run as it wont be able to store it's values and hence will show an error.

Using the app

This simple to configure app is also simple to use. To use the value of counter in your templates -

{{ request.visitors }}

And to use it anywhere else -



In of your django project you can customize some aspects of EasyVisitors app -

  1. EASY_COUNTER_VISITOR_ALIVE_TIME - It determines how long a visitor is concidered as a unit and after that time, that user is concidered as a new vsitor. Datatype : int
    Unit : seconds
    Default: 300
  2. EASY_COUNTER_IGNORED_PATHS - List comprising of all paths, which donot alter the state of the counter upon being visited.
    Datatype : list
    Default: ['/admin']
  3. EASY_COUNTER_RESET - Value for the counter to begin from upon next refresh of any page. If it has any value except None then the counter will stay at that value forever untill changed to None after which it begins counting from that value.
    Datatype : int
    Default: None
    OnChange : Counter stay at the changed value


Deekshant Wadhwa



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for EasyVisitors, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size EasyVisitors-0.1.0-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size EasyVisitors-0.1.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page