skip to navigation
skip to content

Not Logged In

django-url-shortener 0.1.2

Simple django app for URL shortening

Latest Version: 0.2

django-url-shortener
====================

Version 0.1.2

Simple django app for URL shortening with logging to piwik.

Installation
============

Create clean virtualenv and this command will install complete shortener with django and requests libraries:

    pip install django-url-shortener

I also recommend South for database migrations.

    pip install South


Add apps to settings.py to Installed apps

    INSTALLED_APPS = (
        ...
        'django.contrib.sites',
        'django_url_shortener',
        'south',
        ...
    )


For piwik tracking, note that for correct tracking you need a token of admin for the site:

    PIWIK_ID = 42
    PIWIK_URL = 'http://www.example.com/piwik/piwik.php'
    PIWIK_TOKEN = 'ADMIN_TOKEN'

Then run

    python manage.py syncdb
    python manage.py migrate


To track visits run this from command line. For your convenience put this command to cron.

    python manage.py track_views


What is Piwik?
==============

Piwik is open-soure alternative to Google Analytics. It is written in PHP uses MySQL and you own all the data you create over the time. If you like it give it a [try](http://piwik.org/ "piwik.org").

Sites using this:
=================

* [Skra.cz](http://skra.cz/ "Skra.cz")
* [Smrdim.cz](http://smrdim.cz/ "Smrdim.cz")
 
File Type Py Version Uploaded on Size
django-url-shortener-0.1.2.tar.gz (md5) Source 2013-12-29 25KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 57 downloads in the last week
  • 375 downloads in the last month