splash-screen: Add ability to redirect to a splash screen URL

Checks for the presence of a cookie with specific values when activated,
and redirect the user to a configurable URL when it is not found, or not
with an accepted value.

To be used to display a splash screen to users upon the first visit.
It's the responsability of the splash page at the redirected URL to set
the proper cookie value before sending users back to the LMS.
This commit is contained in:
Xavier Antoviaque
2014-02-05 13:37:36 -05:00
parent 15fc640e8f
commit e6f4f4f4f8
3 changed files with 7 additions and 0 deletions

View File

@@ -687,6 +687,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
'track.middleware.TrackMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'splash.middleware.SplashMiddleware',
'course_wiki.course_nav.Middleware',
@@ -1096,6 +1097,9 @@ INSTALLED_APPS = (
'django_comment_common',
'notes',
# Splash screen
'splash',
# Monitoring
'datadog',