Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hseritt/f276ed73fd99bfcb1faba7fd2b283b6a to your computer and use it in GitHub Desktop.
Save hseritt/f276ed73fd99bfcb1faba7fd2b283b6a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
import myproject.settings as settings # noqa E402
info = settings.__dict__
params = []
for arg in sys.argv[1:]:
info = info[arg]
print(info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment