A very simple middleware based page view counter. It's sole purpose is to increment page views.
Python
Latest commit c4e7c99 Feb 15, 2014 @renyi Added LICENSE file.
Permalink
Failed to load latest commit information.
pageviews Version 1.0. Feb 15, 2014
LICENSE Added LICENSE file. Feb 15, 2014
README.md Updated install instructions. Jul 2, 2013
TODO.md
setup.py

README.md

Introduction

A very simple middleware based page view counter. It's sole purpose is to increment page views.

Quickstart

  1. Install from github or clone the repository:
    pip install git+git://github.com/renyi/django-pageviews.git
  1. Add 'pageviews' to INSTALLED_APPS.
    INSTALLED_APPS = (
        "...",
        "pageviews",
    )
  1. Add 'pageviews.middleware.PageViewsMiddleware' to MIDDLEWARE_CLASSES.
    MIDDLEWARE_CLASSES = (
        "...",
        "pageviews.middleware.PageViewsMiddleware"
    )
  1. Run 'python manage.py syncdb' or 'python manage.py migrate'.
    python manage.py migrate
  1. Add {% load pageviews_tags %} to templates.

  2. Insert {% pageviews %} or {% pageviews_url request.path %} to templates.