This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django Db Tools is a set of Database tools that are helpful when running applications with Django in production. The primary initial tool allows for flipping a site in and out of a read-only mode.

Currently the following functionality is being worked on:

  • A header displaying the read only mode
  • Ability to render a template explaining posts are not allowed

Installation

  1. Add the db_tools directory to your Python path.

  2. Add the following middleware to your project’s settings.py file:

    MIDDLEWARE_CLASSES = (
        # ...
        'dbtools.middleware.ReadOnlyMiddleware',
        # ...
    )
    

Configuration

The db tools has two modes which you can control:

  1. READ_ONLY_MODE

This mode ensures all users even if already logged in act as anonymous users on your site. To enable this you need to set the following environment variable:

READ_ONLY_MODE = True
  1. GET_ONLY_MODE

This mode disallows all POST requests to your site. If your site only allows inserting data as POSTS then this should be sufficient to allow your users to view their data, but also ensure no new data is written. To enable this set the following environment variable:

GET_ONLY_MODE = True
Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-db-tools-0.0.1.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Mar 4, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting