Created
February 19, 2020 15:50
-
-
Save hseritt/f276ed73fd99bfcb1faba7fd2b283b6a to your computer and use it in GitHub Desktop.
This file contains 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
#!/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