Skip to main content

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 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 file:

url(r'^uocLTI/', include('uocLTI.urls')),


- 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
  • LTI_DEBUG: Set by default to False
  • LOGIN_REDIRECT_URL: set to URL for redirect after successful login


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.

Files for django-uocLTI, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size django-uocLTI-0.1.3.tar.gz (25.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page