mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-22 08:12:57 -05:00
all
This commit is contained in:
12
lti/apps.py
12
lti/apps.py
@@ -1,5 +1,7 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
from .keys import ensure_keys_exist
|
||||
|
||||
|
||||
class LtiConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
@@ -7,6 +9,10 @@ class LtiConfig(AppConfig):
|
||||
verbose_name = 'LTI 1.3 Integration'
|
||||
|
||||
def ready(self):
|
||||
"""Import signal handlers when app is ready"""
|
||||
# Import any signals here if needed in the future
|
||||
pass
|
||||
"""Initialize LTI app - ensure keys exist"""
|
||||
# Ensure RSA key pair exists for signing Deep Linking responses
|
||||
try:
|
||||
ensure_keys_exist()
|
||||
except Exception:
|
||||
# Don't block startup if key generation fails
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user