Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ac84fd39
Commit
ac84fd39
authored
Aug 03, 2017
by
Aamish Baloch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PROFILE_IMAGE_SIZES_MAP grouped with the similar settings
parent
75021b35
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
33 deletions
+11
-33
cms/envs/aws.py
+0
-7
cms/envs/common.py
+1
-10
lms/envs/aws.py
+4
-7
lms/envs/common.py
+6
-9
No files found.
cms/envs/aws.py
View file @
ac84fd39
...
...
@@ -513,10 +513,3 @@ HELP_TOKENS_BOOKS = ENV_TOKENS.get('HELP_TOKENS_BOOKS', HELP_TOKENS_BOOKS)
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
ENV_TOKENS
.
get
(
'COURSEGRAPH_JOB_QUEUE'
,
LOW_PRIORITY_QUEUE
)
############## Settings for Profile Image Size ######################
PROFILE_IMAGE_SIZES_MAP
=
ENV_TOKENS
.
get
(
'PROFILE_IMAGE_SIZES_MAP'
,
PROFILE_IMAGE_SIZES_MAP
)
cms/envs/common.py
View file @
ac84fd39
...
...
@@ -55,7 +55,7 @@ from lms.envs.common import (
# indirectly accessed through the email opt-in API, which is
# technically accessible through the CMS via legacy URLs.
PROFILE_IMAGE_BACKEND
,
PROFILE_IMAGE_DEFAULT_FILENAME
,
PROFILE_IMAGE_DEFAULT_FILE_EXTENSION
,
PROFILE_IMAGE_SECRET_KEY
,
PROFILE_IMAGE_MIN_BYTES
,
PROFILE_IMAGE_MAX_BYTES
,
PROFILE_IMAGE_SECRET_KEY
,
PROFILE_IMAGE_MIN_BYTES
,
PROFILE_IMAGE_MAX_BYTES
,
PROFILE_IMAGE_SIZES_MAP
,
# The following setting is included as it is used to check whether to
# display credit eligibility table on the CMS or not.
ENABLE_CREDIT_ELIGIBILITY
,
YOUTUBE_API_KEY
,
...
...
@@ -1364,15 +1364,6 @@ POLICY_CHANGE_GRADES_ROUTING_KEY = LOW_PRIORITY_QUEUE
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
LOW_PRIORITY_QUEUE
############## Settings for Profile Image Size ######################
PROFILE_IMAGE_SIZES_MAP
=
{
'full'
:
500
,
'large'
:
120
,
'medium'
:
50
,
'small'
:
30
}
###################### VIDEO IMAGE STORAGE ######################
VIDEO_IMAGE_DEFAULT_FILENAME
=
'images/video-images/default_video_image.png'
...
...
lms/envs/aws.py
View file @
ac84fd39
...
...
@@ -842,6 +842,10 @@ PROFILE_IMAGE_SECRET_KEY = AUTH_TOKENS.get('PROFILE_IMAGE_SECRET_KEY', PROFILE_I
PROFILE_IMAGE_MAX_BYTES
=
ENV_TOKENS
.
get
(
'PROFILE_IMAGE_MAX_BYTES'
,
PROFILE_IMAGE_MAX_BYTES
)
PROFILE_IMAGE_MIN_BYTES
=
ENV_TOKENS
.
get
(
'PROFILE_IMAGE_MIN_BYTES'
,
PROFILE_IMAGE_MIN_BYTES
)
PROFILE_IMAGE_DEFAULT_FILENAME
=
'images/profiles/default'
PROFILE_IMAGE_SIZES_MAP
=
ENV_TOKENS
.
get
(
'PROFILE_IMAGE_SIZES_MAP'
,
PROFILE_IMAGE_SIZES_MAP
)
# EdxNotes config
...
...
@@ -1011,10 +1015,3 @@ ICP_LICENSE = ENV_TOKENS.get('ICP_LICENSE', None)
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
ENV_TOKENS
.
get
(
'COURSEGRAPH_JOB_QUEUE'
,
LOW_PRIORITY_QUEUE
)
############## Settings for Profile Image Size ######################
PROFILE_IMAGE_SIZES_MAP
=
ENV_TOKENS
.
get
(
'PROFILE_IMAGE_SIZES_MAP'
,
PROFILE_IMAGE_SIZES_MAP
)
lms/envs/common.py
View file @
ac84fd39
...
...
@@ -3005,6 +3005,12 @@ PROFILE_IMAGE_DEFAULT_FILE_EXTENSION = 'png'
PROFILE_IMAGE_SECRET_KEY
=
'placeholder secret key'
PROFILE_IMAGE_MAX_BYTES
=
1024
*
1024
PROFILE_IMAGE_MIN_BYTES
=
100
PROFILE_IMAGE_SIZES_MAP
=
{
'full'
:
500
,
'large'
:
120
,
'medium'
:
50
,
'small'
:
30
}
# Sets the maximum number of courses listed on the homepage
# If set to None, all courses will be listed on the homepage
...
...
@@ -3246,12 +3252,3 @@ COURSES_API_CACHE_TIMEOUT = 3600 # Value is in seconds
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
LOW_PRIORITY_QUEUE
############## Settings for Profile Image Size ######################
PROFILE_IMAGE_SIZES_MAP
=
{
'full'
:
500
,
'large'
:
120
,
'medium'
:
50
,
'small'
:
30
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment