readyrector 1.0

Creator: danarutscher

Last updated:

0 purchases

readyrector 1.0 Image
readyrector 1.0 Images

Languages

Categories

Add to Cart

Description:

readyrector 1.0

Easy to implement redirect middleware, which loads redirects from a configurable backend.

Installation
pip install readyrector


Usage
# settings.py
INSTALLED_APPS = (
# ...
'readyrector',
# ...
)

# put at the end of the middleware list as a last resort
MIDDLEWARE = (
# ...
'readyrector.middleware.RedirectDatabaseMiddleware',
)

RedirectDatabaseMiddleware
Gets redirects from database records. Implement a view or API to manage these records.


RedirectURLConfMiddleware
Gets redirects from a URL conf file. Requires setting READYRECTOR_URLCONF



Settings
READYRECTOR_URLCONF

Default: ''

Required when RedirectURLConfMiddleware is used. Expects a path to a URL conf file.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.