Skip to content

Commit 860ae92

Browse files
Condition lti_utilies urls.py on LTI feature (#665)
* Condition lti_utilies urls.py on LTI feature * Bump LTI utilities version --------- Co-authored-by: Tobias Macey <[email protected]>
1 parent bc298f0 commit 860ae92

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/ol_openedx_lti_utilities/ol_openedx_lti_utilities/urls.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
OL Open edX LTI Utilities URLs
33
"""
44

5+
from django.conf import settings
56
from django.urls import re_path
67

7-
from ol_openedx_lti_utilities.views import LtiUserFixView
8+
if settings.FEATURES.get("ENABLE_LTI_PROVIDER"):
9+
from ol_openedx_lti_utilities.views import LtiUserFixView
810

9-
urlpatterns = [
10-
re_path(
11-
r"^",
12-
LtiUserFixView.as_view(),
13-
name="lti_user_fix",
14-
),
15-
]
11+
urlpatterns = [
12+
re_path(
13+
r"^",
14+
LtiUserFixView.as_view(),
15+
name="lti_user_fix",
16+
),
17+
]

src/ol_openedx_lti_utilities/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ol-openedx-lti-utilities"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "An Open edX plugin to add utilities for LTI operations"
55
authors = [
66
{name = "MIT Office of Digital Learning"}

0 commit comments

Comments
 (0)