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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page