Giter VIP home page Giter VIP logo

db_outage's Introduction

DB Outage:

This application will detect an Oracle database outage, and will handle it gracefully by rendering a default error page.

Usage

To include this app in your PyPE project, simply pull it into your project via svn:externals.

path: extra/db_outage

URL: https://github.com/UT-Austin-FIS/db_outage/tags/v1.0/db_outage

Setup

  1. Add "db_outage" to your INSTALLED_APPS setting like this:

          INSTALLED_APPS = (
              # ...
              'db_outage',
              # ...
          )
  2. Add the db_outage middleware to your MIDDLEWARE_CLASSES in settings. It needs to be near the top, if not the very top of your middleware stack:

          MIDDLEWARE_CLASSES = (
              'db_outage.middleware.DBOutageMiddleware',
              # ...
          )
  3. Add DB_OUTAGE_CONTEXT to your settings. This should be a path to a class that carries the core of your page context logic. It will likely be subclass of the Django RequestContext object. IMPORTANT: The context object you supply MUST NOT require oracle database access.

       DB_OUTAGE_CONTEXT = 'path.to.your.desired.ContextObject'
  4. Add DB_OUTAGE_MESSAGE to your settings. This is a custom message that will be displayed when a database outage occurs:

    DB_OUTAGE_MESSAGE = (
        'The <your application name> system is currently unavailable. '
        'We are working to restore service.'
    )

Releases

  • v1.1 (2015/01/22)
    • Adding support for Django 1.7
  • v1.0 (2014/05/29)
    • initial release with support for at least:
      • Python 2.6 - 2.7
      • Django 1.4

db_outage's People

Contributors

jtgraves avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.