From d158da27920f2e404d4f8d3ef38db436d5e48258 Mon Sep 17 00:00:00 2001 From: Douglas Hall <douglashall@dhcp-18-189-69-227.dyn.MIT.EDU> Date: Thu, 25 Jan 2018 11:01:44 -0500 Subject: [PATCH] ENT-854 Add django-fernet-fields to requirements. --- lms/envs/aws.py | 3 +++ lms/envs/common.py | 5 +++++ requirements/edx/base.txt | 1 + 3 files changed, 9 insertions(+) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 372a20546c8..73274e6c913 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -1096,6 +1096,9 @@ COMPLETION_VIDEO_COMPLETE_PERCENTAGE = ENV_TOKENS.get( COMPLETION_VIDEO_COMPLETE_PERCENTAGE, ) +############### Settings for django-fernet-fields ################## +FERNET_KEYS = AUTH_TOKENS.get('FERNET_KEYS', FERNET_KEYS) + ############################### Plugin Settings ############################### from openedx.core.djangoapps.plugins import plugin_settings, constants as plugin_constants diff --git a/lms/envs/common.py b/lms/envs/common.py index 596c4ae9020..ee2a0f8a2b0 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3467,6 +3467,11 @@ COMPLETION_VIDEO_COMPLETE_PERCENTAGE = 0.95 RATELIMIT_ENABLE = True RATELIMIT_RATE = '120/m' +############### Settings for django-fernet-fields ################## +FERNET_KEYS = [ + 'DUMMY KEY CHANGE BEFORE GOING TO PRODUCTION', +] + ############## Plugin Django Apps ######################### from openedx.core.djangoapps.plugins import plugin_apps, plugin_settings, constants as plugin_constants diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 672527e9918..b18b814549e 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -22,6 +22,7 @@ markey==0.8 # From django-babel-underscore django-birdcage==1.0.0 django-config-models==0.1.8 django-countries==4.6.1 +django-fernet-fields==0.5 django-filter==1.0.4 django-ipware==1.1.0 django-model-utils==3.0.0 -- GitLab