Skip to main content

Django's built-in redirect app with some extras.

Project description

Django's built-in redirect app with some extras added.
============

Based on Django's built-in redirect app with some extras added.
Starting point for this app was https://github.com/django/django/tree/master/django/contrib/redirects. Now with these extra features:

* Simple hit counter on each redirect rule

Installation
------------

To get the latest stable release from PyPi

pip install django-redirect-plus

To get the latest commit from GitHub

pip install -e git+git://github.com/arteria/django-redirect-plus.git#egg=redirect_plus




Add ``redirect_plus`` to your ``INSTALLED_APPS``

INSTALLED_APPS = (
...,
'django.contrib.redirects',
'redirect_plus',
)


Update your ``MIDDLEWARE_CLASSES`` in your project settings

MIDDLEWARE_CLASSES = (
...
# 'django.contrib.redirects.middleware.RedirectFallbackMiddleware' , # <= comment this
'redirect_plus.middleware.RedirectFallbackMiddleware', # <= replace by /add this middleware
...
)



Don't forget to sync your database


./manage.py syncdb




Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-redirect-plus-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file django-redirect-plus-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-redirect-plus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 88049621987d24b085c0fdc0a310ba6b583f36500819d52b6d8c46cb70c70bcd
MD5 5d42b12cf58f0955e919cda5d3a8895d
BLAKE2b-256 f16dfedcae41bac55d1b60811441221fd6da89f0ac906e515f890603acc10bef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page