skip to navigation
skip to content

django-pods 0.1

App Settings for Django 1.7

Latest Version: 1.1.2

Django Pods is a minimalist package that lets you configure app specific settings that can be overridden in project settings.

This package is largely inspired by Django Rest Framework and Django AllAuth and adapted to work with Django 1.7 Applications, but also with any classes extending pods.apps.AppSettings.


pip install django-pods

Django 1.7 Usage

In rock_n_roll/

from django.apps import AppConfig
from pods.apps import AppSettings

class RockNRollConfig(AppSettings, AppConfig):
    name = 'rock_n_roll'
    verbose_name = "Rock ’n’ roll"

    # Path to app settings module
    settings_module = "rock_n_roll.app_settings"

    # Optional
    settings_imports = ("CLASS_TO_IMPORT",)

    # Optional
    # defaults to the capitalized class name, e.g. ROCK_N_ROLL_CONFIG
    settings_key = "ROCK_N_ROLL"

In rock_n_roll/

QUESTION = "What is your favourite band?"
ANSWER = "The Rolling Stones"

In project/

    "ANSWER": "The Beatles",

Anywhere else in your project:

from django.apps import apps

app = apps.get_app_config('rock_n_roll')

# What is your favourite band?

# The Beatles

# <class ''>

AppSettings also implements __getattr__ to proxy to settings attributes:

# The Beatles

Django < 1.7 Usage

There isn’t a logical place to create a class representing an app in Django prior to 1.7, but any class can extend AppSettings:

from pods.apps import AppSettings

class AnyClass(AppSettings):
    settings_module = ""


# or

a = AnyClass()

Running Tests



All contributions and comments are welcome.

Change Log


  • Initial
File Type Py Version Uploaded on Size
django-pods-0.1.tar.gz (md5) Source 2014-08-12 5KB
django_pods-0.1-py2.py3-none-any.whl (md5) Python Wheel 2.7 2014-08-12 8KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 486 downloads in the last month