ccnmtl / django-lti-provider

django-lti-provider adds LTI functionality for the Django web framework. This work began as a port of MIT's LTI Flask Sample, which demonstrates a sample LTI provider for the Flask Framework based on the Python LTI library, PyLTI.
Other
46 stars 28 forks source link

Add landing_url template context var to LTI 1.3 landing page #699

Closed nikolas closed 5 months ago

nikolas commented 5 months ago

I have the following template displaying in Canvas... I think through our new LTI 1.3 mechanisms: Screenshot_2024-04-12_16-32-14

This change hooks up the "Launch Now" button to connect the landing_url variable in django's LTI settings in this new launch view.

Note that this view is currently a function view as I based it off of this one: https://github.com/dmitry-viskov/pylti1.3-django-example/blob/master/game/game/views.py#L78

We can always migrate it to a class-based view like our LTI 1.1 views here, when and if necessary.