Home > django-urlshortener

django-urlshortener

Django-urlshortener is a project mainly written in Python, based on the BSD-3-Clause license.

Simple django url shortener

URL shortener Track the number of clicks on a given IP

Features:

  • Exclude URLSHORTENER_EXCLUDE_IPS from the trackiing
  • Stats of the clicks

Settings:

List of ips for avoiding tracking URLSHORTENER_EXCLUDE_IPS = []

IMPORTANT: Before enabling the Historical records make sure you have cache enabled, if you don't have cache enabled you are going to hit the database twice for each record.

URLSHORTENER_HISTORICAL = True URLSHORTENER_CACHE_KEY - URLSHORTENER by default

URLSHORTENER_TIMEOUT = 86400 # 24 Hours URLSHORTENER_HISTORY_SAVE = 3600 # 1 Hour

TODO:

  • Admin integration
  • Identify bots and humans :)
  • Tests!
Previous:bsnes-Qt