Skip to main content

Additional Django functionality

Project description

Downloads Latest Version Wheel Status Egg Status Download format License

This reusable app contains functionality I use across my projects. Feel free to use and expand.

The package is also on PyPI:


  • 0.0.1
    • initial release


Add to your INSTALLED_APPS setting:



Utils for django-configurations


Mixin for a Configuration class of django-configurations. Enables one to load specific variables from <myproject>/configs/<DJANGO_CONFIGURATION>.py. Good to separate critical information from the settings itself. Usually you do not check the configs into your code versioning system!

Usage example:

# in (following the default django-configurations setup)
class Common(Configurations):
        'default': ExternalCredentials.get_credentials_module().DATABASE,

# in <myproject>/configs/<DJANGO_CONFIGURATION>.py; e.g. sampleproject/configs/
    'ENGINE': 'django.db.backends.postgresql_psycopg2',
    'NAME': 'db_name',
    'USER': 'db_user',
    'PASSWORD': 'db_password',

Module utils

function list_remove_duplicates(seq, idfun=None)

Removes duplicates from a list. To preserve the list order, specify a function for the list ids as idfun.

Management Commands

python settings <SOMESETTING>

Print the given setting value using pprint.

Template Tags



  • copyright_years
    • displays are year span from settings.COPYRIGHT_YEAR_START (default: 2012) until now, e.g. 2012 - 2014

Project details

Download files

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

Source Distribution

django-shared-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page