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:
committed by
Sarina Canelake
parent
331a94c124
commit
a7ae152d9b
@@ -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',
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user