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.

Files for django-fallback-view, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_fallback_view-0.2.0-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-fallback-view-0.2.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page