Fork Me on GitHub

Django-intruder

django-intruder

Download this project as a .zip file Download this project as a tar.gz file

Django Intruder

Continuous Integration Status

Django Intruder is a simple and unobtrusive application to intercept requests. It is useful to enable and disable features, for continuous deployment purpouses.

Installation

pip install django-intruder

or

# Download zip file
# Extract it
# Execute in the extracted directory: python setup.py install

Upgrade

pip install django-intruder --upgrade

Motivation

Comparison with another fixture tools

Features

Example of Usage

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',

    'intruder',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware', # required
    'intruder.middleware.IntruderMiddleware',
)

# Optional, you can define this to create a list of default views you want to redirect:
INTRUDER_DEFAULT_REDIRECT_VIEWS = (('', '-----'),
                  ('intruder.views.feature_under_maintenance', 'Feature under maintenance'),
                  ('intruder.views.feature_is_no_longer_available', 'Feature is no longer available'))

Information about the logic of the library

Links of Comments

Change Log

Version 0.1.2

Version 0.1.1

Version 0.1.0