Merge remote-tracking branch 'origin/release'
Conflicts: cms/envs/common.py lms/envs/common.py
This commit is contained in:
@@ -81,6 +81,9 @@ FEATURES = {
|
||||
|
||||
# Hide any Personally Identifiable Information from application logs
|
||||
'SQUELCH_PII_IN_LOGS': False,
|
||||
|
||||
# Toggles embargo functionality
|
||||
'EMBARGO': False,
|
||||
}
|
||||
ENABLE_JASMINE = False
|
||||
|
||||
@@ -99,6 +102,9 @@ sys.path.append(PROJECT_ROOT / 'djangoapps')
|
||||
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.
|
||||
@@ -185,6 +191,8 @@ MIDDLEWARE_CLASSES = (
|
||||
# Allows us to dark-launch particular languages
|
||||
'dark_lang.middleware.DarkLangMiddleware',
|
||||
|
||||
'embargo.middleware.EmbargoMiddleware',
|
||||
|
||||
# Detects user-requested locale from 'accept-language' header in http request
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
|
||||
@@ -467,6 +475,8 @@ INSTALLED_APPS = (
|
||||
# User preferences
|
||||
'user_api',
|
||||
'django_openid_auth',
|
||||
|
||||
'embargo',
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -196,3 +196,6 @@ FEATURES['ENABLE_SERVICE_STATUS'] = True
|
||||
|
||||
# This is to disable a test under the common directory that will not pass when run under CMS
|
||||
FEATURES['DISABLE_RESET_EMAIL_TEST'] = True
|
||||
|
||||
# Toggles embargo on for testing
|
||||
FEATURES['EMBARGO'] = True
|
||||
|
||||
@@ -54,6 +54,7 @@ urlpatterns += patterns(
|
||||
# ajax view that actually does the work
|
||||
url(r'^login_post$', 'student.views.login_user', name='login_post'),
|
||||
url(r'^logout$', 'student.views.logout_user', name='logout'),
|
||||
url(r'^embargo$', 'student.views.embargo', name="embargo"),
|
||||
)
|
||||
|
||||
# restful api
|
||||
|
||||
Reference in New Issue
Block a user