This is a sample application written using https://pypi.org/project/django-tsugi/
This application is designed to be connected into a running Tsugi server, using the Admin -> External tools feature. It receives a special Tsugi-style signed JWT launch at /grade/launch to provision a session on this application. The application can send a grade back to the LMS through Tsugi using an API callback.
Tsugi handles all of the LTI 1.1, LTI Advantage, or even Google Classroom mechanics and allows this tool to be very simple.
The source code for this application is at https://github.com/tsugiproject/djtest and you can find a tutorial / walkthrough on how to install your own copy of this tool at https://www.tsugi.org/django.txt