django-extensions/django-extensions — pull request #144 by msabramo (2011-10-20 16:27:11+00:00)
Title: print_settings: A super simple but useful Django management command to print the active project settings

print_settings: A super simple but useful Django management command to print the active project settings

{{{
$ django print_settings | egrep 'DEBUG|INSTALLED_APPS' | egrep -v 'AUTH|LOGGING'
DEBUG : True
DEBUG_PROPAGATE_EXCEPTIONS : False
DEBUG_TOOLBAR_CONFIG : {'INTERCEPT_REDIRECTS': False}
INSTALLED_APPS : ['django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.admin',
'django.contrib.staticfiles', 'djcelery', 'django_coverage', 'django_extensions',
'debug_toolbar', 'south']
TEMPLATE_DEBUG : True
}}}

See also:

* http://marc-abramowitz.com/archives/2011/10/12/a-super-simple-and-useful-custom-django-management-command/
* https://code.djangoproject.com/ticket/17037
* https://github.com/django-extensions/django-extensions/issues/142#issuecomment-2461649