configuration running on content server: lms/envs/dev_edx4edx
This commit is contained in:
70
lms/envs/dev_edx4edx.py
Normal file
70
lms/envs/dev_edx4edx.py
Normal file
@@ -0,0 +1,70 @@
|
||||
"""
|
||||
This config file runs the simplest dev environment using sqlite, and db-based
|
||||
sessions. Assumes structure:
|
||||
|
||||
/envroot/
|
||||
/db # This is where it'll write the database file
|
||||
/mitx # The location of this repo
|
||||
/log # Where we're going to write log files
|
||||
"""
|
||||
|
||||
import socket
|
||||
|
||||
if 'eecs1' in socket.gethostname():
|
||||
MITX_ROOT_URL = '/mitx2'
|
||||
|
||||
from .common import *
|
||||
from .logsettings import get_logger_config
|
||||
from .dev import *
|
||||
|
||||
if 'eecs1' in socket.gethostname():
|
||||
MITX_ROOT_URL = '/mitx2'
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# edx4edx content server
|
||||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
#EMAIL_BACKEND = 'django_ses.SESBackend'
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# ichuang
|
||||
|
||||
DEBUG = True
|
||||
ENABLE_MULTICOURSE = True # set to False to disable multicourse display (see lib.util.views.mitxhome)
|
||||
QUICKEDIT = True
|
||||
|
||||
#MITX_FEATURES['USE_DJANGO_PIPELINE'] = False
|
||||
MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] = False
|
||||
MITX_FEATURES['DISPLAY_EDIT_LINK'] = True
|
||||
|
||||
COURSE_DEFAULT = "edx4edx"
|
||||
COURSE_NAME = "edx4edx"
|
||||
COURSE_NUMBER = "edX.01"
|
||||
COURSE_TITLE = "edx4edx: edX Author Course"
|
||||
SITE_NAME = "ichuang.mitx.mit.edu"
|
||||
|
||||
COURSE_SETTINGS = {'edx4edx': {'number' : 'edX.01',
|
||||
'title' : 'edx4edx: edX Author Course',
|
||||
'xmlpath': '/edx4edx/',
|
||||
'github_url': 'https://github.com/MITx/edx4edx',
|
||||
'active' : True,
|
||||
},
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
|
||||
'ssl_auth.ssl_auth.NginxProxyHeaderMiddleware', # ssl authentication behind nginx proxy
|
||||
)
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'ssl_auth.ssl_auth.SSLLoginBackend',
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
)
|
||||
|
||||
INSTALLED_APPS = INSTALLED_APPS + (
|
||||
'ssl_auth',
|
||||
)
|
||||
|
||||
LOGIN_REDIRECT_URL = MITX_ROOT_URL + '/'
|
||||
LOGIN_URL = MITX_ROOT_URL + '/'
|
||||
1
lms/static/7.03x
Symbolic link
1
lms/static/7.03x
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../data/7.03x/html
|
||||
1
lms/static/8.02
Symbolic link
1
lms/static/8.02
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../data/8.02x/html
|
||||
1
lms/static/MIT801
Symbolic link
1
lms/static/MIT801
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../data/8.01x/MIT801
|
||||
1
lms/static/edx4edx
Symbolic link
1
lms/static/edx4edx
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../data/edx4edx/html
|
||||
Reference in New Issue
Block a user