https://github.com/arteria/django-redirect-plus
Django's built-in redirect app with some extras added.
https://github.com/arteria/django-redirect-plus
Last synced: 3 months ago
JSON representation
Django's built-in redirect app with some extras added.
- Host: GitHub
- URL: https://github.com/arteria/django-redirect-plus
- Owner: arteria
- License: mit
- Created: 2013-11-27T12:12:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T22:28:02.000Z (over 5 years ago)
- Last Synced: 2025-01-24T15:27:27.503Z (4 months ago)
- Language: Python
- Homepage: https://github.com/arteria/django-redirect-plus
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
Awesome Lists containing this project
README
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
...
'redirect_plus.middleware.RedirectForceMiddleware', # <= add this to override specific URLs.
)
Don't forget to sync your database
./manage.py syncdb