dev_ike: MITX_ROOT_URL set based on hostname

This commit is contained in:
ichuang
2012-05-28 11:01:53 -04:00
parent 066dcfabc8
commit e3e41e0c95

View File

@@ -8,13 +8,17 @@ sessions. Assumes structure:
/log # Where we're going to write log files
"""
MITX_ROOT_URL = '/mitx2'
import socket
if 'eecs1' in socket.gethostname():
MITX_ROOT_URL = '/mitx2'
from envs.common import *
from envs.logsettings import get_logger_config
from dev import *
MITX_ROOT_URL = '/mitx2'
if 'eecs1' in socket.gethostname():
MITX_ROOT_URL = '/mitx2'
#-----------------------------------------------------------------------------
# ichuang