Skip to main content

Middleware that returns a fallback view when the URL matches anything that isnt specified>

Project description

Django Fallback View

Description

Middleware that returns a fallback view when the URL matches anything that isnt specified>

Installation

pip install django-fallback-view

Usage

# settings.py

FALLBACK_VIEW = "path.to.view.class.ViewClass"

MIDDLEWARE = [
    ...
    "fallback_view.middleware.FallbackViewMiddleware",
]

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-fallback-view-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

django_fallback_view-0.2.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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