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
b02c7447
Commit
b02c7447
authored
Nov 02, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move lti_provider startup.py to AppConfig::ready.
parent
c866b526
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
lms/djangoapps/lti_provider/apps.py
+16
-0
lms/djangoapps/lti_provider/startup.py
+0
-4
lms/envs/aws.py
+1
-1
lms/envs/test.py
+1
-1
lms/envs/yaml_config.py
+1
-1
No files found.
lms/djangoapps/lti_provider/apps.py
0 → 100644
View file @
b02c7447
"""
Configuration for the lti_provider Django application.
"""
from
django.apps
import
AppConfig
class
LtiProviderConfig
(
AppConfig
):
"""
Configuration class for the lti_provider Django application.
"""
name
=
'lti_provider'
verbose_name
=
"LTI Provider"
def
ready
(
self
):
# Import the tasks module to ensure that signal handlers are registered.
from
.
import
tasks
# pylint: disable=unused-import
lms/djangoapps/lti_provider/startup.py
deleted
100644 → 0
View file @
c866b526
"""Code run at server start up to initialize the lti_provider app."""
# Import the tasks module to ensure that signal handlers are registered.
import
lms.djangoapps.lti_provider.tasks
# pylint: disable=unused-import
lms/envs/aws.py
View file @
b02c7447
...
...
@@ -869,7 +869,7 @@ CREDIT_PROVIDER_SECRET_KEYS = AUTH_TOKENS.get("CREDIT_PROVIDER_SECRET_KEYS", {})
##################### LTI Provider #####################
if
FEATURES
.
get
(
'ENABLE_LTI_PROVIDER'
):
INSTALLED_APPS
.
append
(
'lti_provider'
)
INSTALLED_APPS
.
append
(
'lti_provider
.apps.LtiProviderConfig
'
)
AUTHENTICATION_BACKENDS
.
append
(
'lti_provider.users.LtiBackend'
)
LTI_USER_EMAIL_DOMAIN
=
ENV_TOKENS
.
get
(
'LTI_USER_EMAIL_DOMAIN'
,
'lti.example.com'
)
...
...
lms/envs/test.py
View file @
b02c7447
...
...
@@ -571,7 +571,7 @@ PROFILE_IMAGE_MIN_BYTES = 100
# Enable the LTI provider feature for testing
FEATURES
[
'ENABLE_LTI_PROVIDER'
]
=
True
INSTALLED_APPS
.
append
(
'lti_provider'
)
INSTALLED_APPS
.
append
(
'lti_provider
.apps.LtiProviderConfig
'
)
AUTHENTICATION_BACKENDS
.
append
(
'lti_provider.users.LtiBackend'
)
# ORGANIZATIONS
...
...
lms/envs/yaml_config.py
View file @
b02c7447
...
...
@@ -319,7 +319,7 @@ if FEATURES.get('INDIVIDUAL_DUE_DATES'):
##################### LTI Provider #####################
if
FEATURES
.
get
(
'ENABLE_LTI_PROVIDER'
):
INSTALLED_APPS
.
append
(
'lti_provider'
)
INSTALLED_APPS
.
append
(
'lti_provider
.apps.LtiProviderConfig
'
)
AUTHENTICATION_BACKENDS
.
append
(
'lti_provider.users.LtiBackend'
)
################################ Settings for Credentials Service ################################
...
...
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