Better handling of the passphrase

This commit is contained in:
Daniel Quinn
2016-01-10 13:40:26 +00:00
parent 65c2e42008
commit fe47f9f07e
3 changed files with 26 additions and 11 deletions

View File

@@ -11,9 +11,8 @@ if __name__ == "__main__":
# The runserver and consumer need to have access to the passphrase, so it
# must be entered at start time to keep it safe.
if "runserver" in sys.argv or "consume" in sys.argv:
settings.PASSPHRASE = "asdf"
if not settings.DEBUG:
if not settings.PASSPHRASE:
settings.PASSPHRASE = input(
"Production environment. Input passphrase: ")
"settings.PASSPHRASE is unset. Input passphrase: ")
execute_from_command_line(sys.argv)