Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
993a2118
Commit
993a2118
authored
5 years ago
by
nadeemshahzad
Browse files
Options
Downloads
Patches
Plain Diff
defaults to common.py
parent
50a2641e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cms/envs/test.py
+3
-0
3 additions, 0 deletions
cms/envs/test.py
lms/envs/bok_choy.py
+1
-0
1 addition, 0 deletions
lms/envs/bok_choy.py
lms/envs/common.py
+344
-77
344 additions, 77 deletions
lms/envs/common.py
lms/envs/test.py
+28
-0
28 additions, 0 deletions
lms/envs/test.py
with
376 additions
and
77 deletions
cms/envs/test.py
+
3
−
0
View file @
993a2118
...
...
@@ -33,6 +33,7 @@ from lms.envs.test import (
MEDIA_ROOT
,
MEDIA_URL
,
COMPREHENSIVE_THEME_DIRS
,
ENABLE_COMPREHENSIVE_THEMING
,
JWT_AUTH
,
REGISTRATION_EXTRA_FIELDS
,
ECOMMERCE_API_URL
,
...
...
@@ -357,3 +358,5 @@ derive_settings(__name__)
############### Settings for edx-rbac ###############
SYSTEM_WIDE_ROLE_CLASSES
=
os
.
environ
.
get
(
"
SYSTEM_WIDE_ROLE_CLASSES
"
,
[])
DEFAULT_MOBILE_AVAILABLE
=
True
This diff is collapsed.
Click to expand it.
lms/envs/bok_choy.py
+
1
−
0
View file @
993a2118
...
...
@@ -144,6 +144,7 @@ FEATURES['MILESTONES_APP'] = True
# Enable oauth authentication, which we test.
FEATURES
[
'
ENABLE_OAUTH2_PROVIDER
'
]
=
True
OAUTH_ENFORCE_SECURE
=
False
# Enable pre-requisite course
FEATURES
[
'
ENABLE_PREREQUISITE_COURSES
'
]
=
True
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
344
−
77
View file @
993a2118
This diff is collapsed.
Click to expand it.
lms/envs/test.py
+
28
−
0
View file @
993a2118
...
...
@@ -125,6 +125,8 @@ XQUEUE_WAITTIME_BETWEEN_REQUESTS = 5 # seconds
MOCK_STAFF_GRADING
=
True
MOCK_PEER_GRADING
=
True
COMMENTS_SERVICE_URL
=
'
http://localhost:4567
'
############################ STATIC FILES #############################
# TODO (cpennington): We need to figure out how envs/test.py can inject things
...
...
@@ -261,6 +263,7 @@ OPENID_PROVIDER_TRUSTED_ROOTS = ['*']
FEATURES
[
'
ENABLE_OAUTH2_PROVIDER
'
]
=
True
# don't cache courses for testing
OIDC_COURSE_HANDLER_CACHE_TIMEOUT
=
0
OAUTH_ENFORCE_SECURE
=
False
########################### External REST APIs #################################
FEATURES
[
'
ENABLE_MOBILE_REST_API
'
]
=
True
...
...
@@ -553,12 +556,14 @@ COURSE_CATALOG_API_URL = 'https://catalog.example.com/api/v1'
COMPREHENSIVE_THEME_DIRS
=
[
REPO_ROOT
/
"
themes
"
,
REPO_ROOT
/
"
common/test
"
]
COMPREHENSIVE_THEME_LOCALE_PATHS
=
[
REPO_ROOT
/
"
themes/conf/locale
"
,
]
ENABLE_COMPREHENSIVE_THEMING
=
True
LMS_ROOT_URL
=
"
http://localhost:8000
"
FRONTEND_LOGOUT_URL
=
LMS_ROOT_URL
+
'
/logout
'
ECOMMERCE_API_URL
=
'
https://ecommerce.example.com/api/v2/
'
ECOMMERCE_PUBLIC_URL_ROOT
=
None
ENTERPRISE_API_URL
=
'
http://enterprise.example.com/enterprise/api/v1/
'
ENTERPRISE_CONSENT_API_URL
=
'
http://enterprise.example.com/consent/api/v1/
'
...
...
@@ -616,3 +621,26 @@ derive_settings(__name__)
############### Settings for edx-rbac ###############
SYSTEM_WIDE_ROLE_CLASSES
=
os
.
environ
.
get
(
"
SYSTEM_WIDE_ROLE_CLASSES
"
,
[])
###################### Grade Downloads ######################
# These keys are used for all of our asynchronous downloadable files, including
# the ones that contain information other than grades.
GRADES_DOWNLOAD
=
{
'
STORAGE_TYPE
'
:
'
localfs
'
,
'
BUCKET
'
:
'
edx-grades
'
,
'
ROOT_PATH
'
:
'
/tmp/edx-s3/grades
'
,
}
# Configuration used for generating PDF Receipts/Invoices
PDF_RECEIPT_TAX_ID
=
'
add here
'
PDF_RECEIPT_FOOTER_TEXT
=
'
add your own specific footer text here
'
PDF_RECEIPT_DISCLAIMER_TEXT
=
'
add your own specific disclaimer text here
'
PDF_RECEIPT_BILLING_ADDRESS
=
'
add your own billing address here with appropriate line feed characters
'
PDF_RECEIPT_TERMS_AND_CONDITIONS
=
'
add your own terms and conditions
'
PDF_RECEIPT_TAX_ID_LABEL
=
'
Tax ID
'
PROFILE_MICROFRONTEND_URL
=
"
http://profile-mfe/abc/
"
ORDER_HISTORY_MICROFRONTEND_URL
=
"
http://order-history-mfe/
"
ACCOUNT_MICROFRONTEND_URL
=
"
http://account-mfe/
"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment