Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

View Django Settings at a URL

Project Description

# django-settings-view-as-json

View Django Settings via URL

[![Latest PyPI version](](
[![Number of PyPI downloads](](


## Why

Because sometimes its confusing what settings are in use in your staging environments etc.

## Features

* Recursively nulls out any sensitive key values (eg passwords)

## Install

pip install django-settings-view-as-json

## Usage

from django_settings_view_as_json import settings_view

url(r'^settings/$', settings_view.as_view(), name='settings'),

## Security Warning

I highly recommend limiting this URL to either non production environments or at least Super user's. Eg

from django.contrib.auth.decorators import user_passes_test
from django_settings_view_as_json import settings_view

url(r'^settings/$', user_passes_test(lambda u: u.is_superuser)(settings_view.as_view()), name='settings'),


## JSON In Browser

I recommend [Chrome JsonView Plugin](


* Make sensitive key list a setting

## Changelog

* 0.0.6 Fix issue with deep cloning (fallback to shallow)

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(38.2 kB) Copy SHA256 Hash SHA256
Source None Mar 17, 2016

Supported By

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