Skip to main content

Remake of standart Django redirect middleware

Project description

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

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-middleware-0.0.1.tar.gz (1.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-redirect-middleware-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bb9c007ab5a8523c6917d35b11bc070dfd52906c4eb5fa91ffa06327a0c8b7e5
MD5 f5c6706bf219eaf47d36e6f8e3020ccc
BLAKE2b-256 d7a35d0a5a9ceb0b4a6c2489f92a1cbb2b60563be0600216394a09359aeedebb

See more details on using hashes here.

Supported by

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