Code Monkey home page Code Monkey logo

django-settings-list's Introduction

django-settings-list

A simple, reusable Django app that lists the settings values for a deployed or running project using a custom admin view accessible only by superusers.

Technically, admin is not required, but by default the Settings List view is styled similarly to Django Admin.

Installation

  1. Make settings_list available in your Python environment.

  2. Make the settings_list/templates/ directory available in your project, either by adding settings_list to INSTALLED_APPS and enabling the app_directories template loader, or by specifying the path manually in TEMPLATE_DIRS.

  3. Add a URL pattern for the settings_list.views.settings_list view.

For example:

(r'^admin/settings/$', 'settings_list.views.settings_list'),

Keeping private settings private

Django Settings List uses django.views.debug.get_safe_settings, which obfuscates "secret" settings (currently, any setting with a name containing SECRET, PASSWORD, PROFANITIES_LIST, or SIGNATURE). This is the same filter used by the debug traceback reporter.

You can also manually specify additional settings to keep private by adding a PRIVATE_SETTINGS setting to your project. For example:

PRIVATE_SETTINGS = [
    'AUTHNET_MERCHANT_ID',
    'AUTHNET_TRANSACTION_KEY',
    'AWS_ACCESS_KEY_ID',
    'AWS_SECRET_ACCESS_KEY',
]

django-settings-list's People

Contributors

bryanchow avatar

Stargazers

saidimu apale 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.