No description, website, or topics provided.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
test_app
urlographer
.coveragerc
.gitignore
.travis.yml
README.md
fabfile.py
requirements-tests.txt
requirements.txt
setup.py
tox.ini

README.md

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 tests locally

fab test

To run coverage locally AND report it

fab test_coverage
coverage report -m

To install in current virtualenv

Make sure your virtualenv is loaded and:

python setup.py install