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
Make output format configurable (simple, pprint, json, yaml)

$ pylint django-extensions/django_extensions/management/commands/print_settings.py | grep rated
No config file found, using default configuration
Your code has been rated at 10.00/10 (previous run: 10.00/10)
Fix #186

find_template management command does not work

Django does not find_template does not return origin, see:
https://code.djangoproject.com/ticket/17199
added inclusion of test models for test_dumpscript
Merge pull request #195 from dexterbt1/master

Fix for issue #189
ADMIN_MEDIA_PREFIX is deprecated in django 1.4
Merge pull request #197 from digitalpbk/patch-2

ADMIN_MEDIA_PREFIX is deprecated in django 1.4
runprofileserver can now uses the staticfiles app (code copied from runserver_plus)
Fixed issue with models containing self-relationships.
Removing conditional expression and reverting back to old syntax to support Python < 2.5
Merge pull request #198 from ciciliati/patch-1

Fixed issue with models containing self-relationships.
Removed redundant code (was checking if statifiles app was installed, but this was already checked before)
Fix failure in python 2.6 when using "shell_plus --print-sql"

Change introduced in [15c81cd] to display sql execution time relies on a method of datetime.timedelta introduced in python 2.7 (total_seconds). Using time.time() is simpler and backwards compatible.
Merge pull request #199 from yassam/master

runprofileserver can now use staticfiles app
Changed JSONField to allow empty lists as value
Fix failure in python 2.6 when using "shell_plus --print-sql"

Change introduced in [15c81cd] to display sql execution time relies on a method of datetime.timedelta introduced in python 2.7 (total_seconds). Using time.time() is simpler and backwards compatible.
Merge branch 'master' of github.com:ltvolks/django-extensions

* 'master' of github.com:ltvolks/django-extensions:
  Fix failure in python 2.6 when using "shell_plus --print-sql"

Conflicts:
	django_extensions/management/commands/shell_plus.py
Merge branch 'master' of github.com:django-extensions/django-extensions

* 'master' of github.com:django-extensions/django-extensions:
  Removed redundant code (was checking if statifiles app was installed, but this was already checked before)
  runprofileserver can now uses the staticfiles app (code copied from runserver_plus)
ticket #202, werkzeug link 404'd replaces by generic link to werkzeug and pip install instructions
ticket #203 make sure INSTALLED_APPS is cohersed into a list and reset the original INSTALLED_APPS on teardown