Ensuring that we are looking for LEMUR_ENCRYPTION_KEY configuration variable and not ENCRYPTION_KEY configuration variable.
This commit is contained in:
parent
4330ac9c05
commit
5c9bcc5c23
@ -84,14 +84,14 @@ def configure_app(app, config=None):
|
||||
:return:
|
||||
"""
|
||||
try:
|
||||
app.config.from_envvar("LEMUR_SETTINGS")
|
||||
app.config.from_envvar("LEMUR_CONF")
|
||||
except RuntimeError:
|
||||
if config and config != 'None':
|
||||
app.config.from_object(from_file(config))
|
||||
else:
|
||||
app.config.from_object(from_file(os.path.expanduser("~/.lemur/lemur.conf.py")))
|
||||
|
||||
if not app.config.get('ENCRYPTION_KEY'):
|
||||
if not app.config.get('LEMUR_ENCRYPTION_KEY'):
|
||||
raise NoEncryptionKeyFound
|
||||
|
||||
|
||||
|
2
lemur/manage.py
Normal file → Executable file
2
lemur/manage.py
Normal file → Executable file
@ -494,7 +494,7 @@ class LemurServer(Command):
|
||||
return app.run()
|
||||
|
||||
|
||||
def main():
|
||||
if __name__ == "__main__":
|
||||
manager.add_command("start", LemurServer())
|
||||
manager.add_command("runserver", Server(host='127.0.0.1'))
|
||||
manager.add_command("clean", Clean())
|
||||
|
Loading…
Reference in New Issue
Block a user