This LTI dynamic registration implementation follows this guide: https://moodlelti.theedtech.dev/dynreg/
It allows you to create a one-off registration link, which you can use to register your Django application at a tool consumer, using the pylti1p3 package.
If you use this code, please refer to the guide / spec to see which fields to include in the JSONs that are being exchanged with the consumer. This implementation has only been tested with Moodle.