1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
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
Add the db_tools directory to your Python path.
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:
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
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 files for django-db-tools 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-db-tools-0.0.1.tar.gz | 3.5 kB | Details |
Release files / django-db-tools-0.0.1.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | django-db-tools-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f903bb174df9c9a22c7e3c186659470f3a4150667388992d6e68f8afbcf3e6ea
|
|
BLAKE2b-256 checksum How to use checksums |
1e8cc9dfcd27edf80ee708091c4c9bb2f67f88ac79f31293d0fdd9852e4785a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |