https://github.com/redsolution/django-redirect-middleware
Does unconditional redirect's rather than Django's contrib module
https://github.com/redsolution/django-redirect-middleware
Last synced: 10 months ago
JSON representation
Does unconditional redirect's rather than Django's contrib module
- Host: GitHub
- URL: https://github.com/redsolution/django-redirect-middleware
- Owner: redsolution
- License: bsd-3-clause
- Created: 2012-06-01T09:00:04.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-14T06:57:39.000Z (over 12 years ago)
- Last Synced: 2025-04-22T23:14:43.522Z (10 months ago)
- Language: Python
- Size: 97.7 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
======================================
Django Redirect Middleware
======================================
Quick Start
```````````
Add ``django.contrib.redirects`` to INSTALLED_APPS ::
INSTALLED_APPS = [
...
'django.contrib.redirects',
...
]
Add ``redirects.middleware.RedirectMiddleware`` to MIDDLEWARE_CLASSES ::
MIDDLEWARE_CLASSES = [
...
'redirects.middleware.RedirectMiddleware',
...
]
Synchronize your database models run ``django syncdb``