An IMS-LTI provider interface for django apps using the ims_lti_py library, created for use within the Universitat Obert de Catalunya UOC - nfinney 2013
Project description
Django-uocLTI is an app for interfacing django apps to LMS platforms, created for use at the Universitat Obert de Catalunya (UOC). This app turns a django project into an LTI provider, creating a user and an associated profile with fields based on the Consumer-provided LTI fields (ims-lti).
The app is more-or-less just an example of how to set up a django project for processing an LTI request from the consumer, using the ims-lti-py library, along with a simple profile model to save the fields of interest.
Installation and Setup
Run setup.py to install uocLTI and its dependencies. Then, add ‘uocLTI’ to installed apps in your settings and run syncdb to add the profile table.
Add the following line to your main urls.py file:
url(r'^uocLTI/', include('uocLTI.urls')),
Settings:
- CONSUMER_URL: This field is not currently being used. - CONSUMER_KEY: Used for authentication, along with LTI_SECRET (required) - LTI_SECRET: Used for authentication, along with CONSUMER_KEY (required) - VELVET_ROLES: List of roles which are allowed access to the app (optional: if not set, any role is allowed entry) - VELVET_ADMIN_ROLES: List of roles which are added as administrators (optional: make sure these are rock solid, they set is_staff=True, is_superuser=True thereby giving full access to the app. If not set no users entering via LTI will have staff or superuser privaledges) - AUTH_PROFILE_MODULE: Set by default to 'uocLTI.LTIProfile', make sure this is not overridden in settings. If you are going to be using another custom profile model, then you'll need to remove the code related to the profile fields in views.py.
LTI_DEBUG: Set by default to False
LOGIN_REDIRECT_URL: set to URL for redirect after successful login
Usage
The launchurl is http://<domain>/uocLTI/launch_lti/. The launch_lti view processes the request and creates a new user and an associated profile if the user does not exist, else the user is logged in and redirected to the LOGIN_REDIRECT_URL url as defined in the project settings.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-uocLTI-0.1.3.tar.gz
.
File metadata
- Download URL: django-uocLTI-0.1.3.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64fc1568fe1316ccb54e80d478cc584671cae9ee4dde9f4e5eae83441f4db79d |
|
MD5 | 2b44fb56894dded26023c43e78ecf690 |
|
BLAKE2b-256 | 18bf34a9b267bfa1df08ac70ff8e96221c821e1f51bba5ba17594094f03eff4a |