Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
OpenEdx
configuration
Commits
0677092e
Commit
0677092e
authored
7 years ago
by
Christopher Lee
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4108 from edx/clee/parler
Added django-parler configuration for django-parler
parents
5988d89d
47b7cad0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
CHANGELOG.md
+3
-0
playbooks/roles/discovery/defaults/main.yml
+18
-1
No files found.
CHANGELOG.md
View file @
0677092e
-
Role: discovery
-
Updated LANGUAGE_CODE to generic english. Added configuration for multilingual language package django-parler.
-
Role: edxapp
-
Added
`EDXAPP_EXTRA_MIDDLEWARE_CLASSES`
for configuring additional middleware logic.
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/discovery/defaults/main.yml
View file @
0677092e
...
...
@@ -57,7 +57,20 @@ DISCOVERY_URL_ROOT: 'http://discovery:{{ DISCOVERY_NGINX_PORT }}'
DISCOVERY_LOGOUT_URL
:
'
{{
DISCOVERY_URL_ROOT
}}/logout/'
DISCOVERY_SECRET_KEY
:
'
Your
secret
key
here'
DISCOVERY_LANGUAGE_CODE
:
'
en-us'
DISCOVERY_LANGUAGE_CODE
:
'
en'
## Configuration for django-parler package. For more information visit
## https://django-parler.readthedocs.io/en/latest/configuration.html#parler-languages
DISCOVERY_PARLER_DEFAULT_LANGUAGE_CODE
:
'
{{DISCOVERY_LANGUAGE_CODE}}'
DISCOVERY_PARLER_LANGUAGES
:
1
:
-
code
:
'
en'
default
:
fallbacks
:
-
'
{{DISCOVERY_PARLER_DEFAULT_LANGUAGE_CODE}}'
hide_untranslated
:
'
False'
DISCOVERY_DEFAULT_PARTNER_ID
:
1
DISCOVERY_SESSION_EXPIRE_AT_BROWSER_CLOSE
:
false
...
...
@@ -127,5 +140,9 @@ discovery_service_config_overrides:
OPENEXCHANGERATES_API_KEY
:
'
{{
DISCOVERY_OPENEXCHANGERATES_API_KEY
}}'
LANGUAGE_CODE
:
'
{{DISCOVERY_LANGUAGE_CODE}}'
PARLER_DEFAULT_LANGUAGE_CODE
:
'
{{DISCOVERY_PARLER_DEFAULT_LANGUAGE_CODE}}'
PARLER_LANGUAGES
:
'
{{DISCOVERY_PARLER_LANGUAGES}}'
# See edx_django_service_automated_users for an example of what this should be
DISCOVERY_AUTOMATED_USERS
:
{}
This diff is collapsed.
Click to expand it.
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