Embargo Middleware feature

Adds configurable middleware in common/djangoapps/embargo that
allows specific courses to comply with US Export regulations by
embargoing students from specific countries, whilst simultaneously
allowing other courses to be freely open to all.
This commit is contained in:
Julia Hansbrough
2014-02-21 16:46:53 +00:00
committed by Sarina Canelake
parent 331a94c124
commit a7ae152d9b
15 changed files with 279 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ sys.path.append(PROJECT_ROOT / 'lib')
sys.path.append(COMMON_ROOT / 'djangoapps')
sys.path.append(COMMON_ROOT / 'lib')
# For geolocation ip database
GEOIP_PATH = REPO_ROOT / "common/static/data/geoip/GeoIP.dat"
############################# WEB CONFIGURATION #############################
# This is where we stick our compiled template files.
@@ -195,6 +198,8 @@ MIDDLEWARE_CLASSES = (
# for expiring inactive sessions
'session_inactivity_timeout.middleware.SessionInactivityTimeout',
'embargo.middleware.EmbargoMiddleware',
)
############# XBlock Configuration ##########
@@ -465,6 +470,8 @@ INSTALLED_APPS = (
# User preferences
'user_api',
'django_openid_auth',
'embargo',
)