From c24b6cabc9867f72b62246fdc55b7df1d7b8dbab Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Mon, 28 Oct 2013 19:48:20 +0200 Subject: [PATCH] Move cookie secret to settings. #7 --- rd_service/server.py | 2 +- rd_service/settings_example.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rd_service/server.py b/rd_service/server.py index bf2cd53287..39f84a880b 100644 --- a/rd_service/server.py +++ b/rd_service/server.py @@ -298,7 +298,7 @@ def get_application(static_path, is_debug, redis_connection, data_manager): static_path=static_path, debug=is_debug, login_url="/login", - cookie_secret="1f7146d871a6a23263089419cc443813", + cookie_secret=settings.COOKIE_SECRET, redis_connection=redis_connection, data_manager=data_manager) diff --git a/rd_service/settings_example.py b/rd_service/settings_example.py index 149366dbea..da2e354094 100644 --- a/rd_service/settings_example.py +++ b/rd_service/settings_example.py @@ -20,6 +20,7 @@ STATIC_ASSETS_PATH = "../rd_ui/dist/" WORKERS_COUNT = 2 MAX_CONNECTIONS = 3 +COOKIE_SECRET = "c292a0a3aa32397cdb050e233733900f" # Configuration of the operational database for the Django models django.conf.settings.configure(DATABASES = { 'default': {