Skip to content

Commit

Permalink
Remove duplicate REQUIRED_SETTINGS check.
Browse files Browse the repository at this point in the history
This makes fetching settings from here for the rabbitmq config not
work; and the main place we check for this is in initialize-database
anyway.

(imported from commit fcc6eff3882f880fdc8b127daffc9a3173f3ff20)
  • Loading branch information
timabbott committed Sep 25, 2015
1 parent 6540807 commit a0006d5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions zproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,6 @@ def get_secret(key):
("DEFAULT_FROM_EMAIL", "Zulip <[email protected]>"),
("ALLOWED_HOSTS", "*"),
]
if PRODUCTION:
for (setting_name, default) in REQUIRED_SETTINGS:
try:
value = globals()[setting_name]
if value != default:
continue
print "Error: %s can't be %s in production in /etc/zulip/settings.py." % \
(setting_name, value)
except AttributeError:
print "Error: You must set %s in /etc/zulip/settings.py." % (setting_name,)
sys.exit(1)

if ADMINS == "":
ADMINS = (("Zulip Administrator", ZULIP_ADMINISTRATOR),)
Expand Down

0 comments on commit a0006d5

Please sign in to comment.