Skip to content

Instantly share code, notes, and snippets.

@pizzapanther
Created March 4, 2012 00:38
Show Gist options
  • Select an option

  • Save pizzapanther/1969453 to your computer and use it in GitHub Desktop.

Select an option

Save pizzapanther/1969453 to your computer and use it in GitHub Desktop.
Dump Settings Django Management Command
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
class Command (BaseCommand):
#args = '<poll_id poll_id ...>'
#help = HELP
def handle(self, *args, **options):
for s in dir(settings):
print s, ':', getattr(settings, s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment