Created
March 4, 2012 00:38
-
-
Save pizzapanther/1969453 to your computer and use it in GitHub Desktop.
Dump Settings Django Management Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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