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