From 309590fb6b2bbf378641278abfebf9a83e051bd9 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Tue, 21 Jul 2015 09:50:33 -0700 Subject: [PATCH] Removing unneeded directory --- Makefile | 2 +- lemur/manage.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1521c9ce..03369342 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ lint: lint-python lint-js lint-python: @echo "--> Linting Python files" - PYFLAKES_NODOCTEST=1 flake8 lemur tests + PYFLAKES_NODOCTEST=1 flake8 lemur @echo "" lint-js: diff --git a/lemur/manage.py b/lemur/manage.py index 8aa9be60..e8a623c4 100755 --- a/lemur/manage.py +++ b/lemur/manage.py @@ -63,6 +63,12 @@ THREADS_PER_PAGE = 8 CORS = False debug = False +# modify this if you are not using a local database +SQLALCHEMY_DATABASE_URI = 'postgresql://lemur:lemur@localhost:5432/lemur' + +# this is the secret key used by flask session management +SECRET_KEY = '{flask_secret_key}' + # You should consider storing these separately from your config LEMUR_SECRET_TOKEN = '{secret_token}' LEMUR_ENCRYPTION_KEY = '{encryption_key}' @@ -178,7 +184,8 @@ def generate_settings(): """ output = CONFIG_TEMPLATE.format( encryption_key=base64.b64encode(os.urandom(KEY_LENGTH)), - secret_token=base64.b64encode(os.urandom(KEY_LENGTH)) + secret_token=base64.b64encode(os.urandom(KEY_LENGTH)), + flask_secret_key=base64.b64encode(os.urandom(KEY_LENGTH)), ) return output