Skip to content

pombredanne/django-urlshortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Simple django url shortener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published