django-urlographer

URL mapper for django


License
Apache-2.0
Install
pip install django-urlographer==0.9.0

Documentation

django-urlographer

A URL mapper for the django web framework.

Build Status Coverage Status

Features

  • supplements the django url resolution
  • database + cache driven
  • automatic caching and cache invalidation on save
  • permanent and temporary redirects
  • map url to arbitrary status code
  • url canonicalization
    • lowercase
    • ascii
    • eliminate relative paths
    • extra slashes

To run tests locally

tox

To run tests for a specific environment:

tox -e django19

To debug tests locally

  • Add ipdb to deps in [base], example:
deps =
    mox
    nose
    ipdb

Run this command:

tox -e django19 -- -s

To run coverage locally

coverage report -m

To install in current virtualenv

Make sure your virtualenv is loaded and:

python setup.py install