Use relative includes in settings files
This commit is contained in:
@@ -8,8 +8,8 @@ Common traits:
|
||||
"""
|
||||
import json
|
||||
|
||||
from envs.logsettings import get_logger_config
|
||||
from envs.common import *
|
||||
from .logsettings import get_logger_config
|
||||
from .common import *
|
||||
|
||||
############################### ALWAYS THE SAME ################################
|
||||
DEBUG = False
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
These are debug machines used for content creators, so they're kind of a cross
|
||||
between dev machines and AWS machines.
|
||||
"""
|
||||
from envs.aws import *
|
||||
from .aws import *
|
||||
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = True
|
||||
|
||||
@@ -13,9 +13,9 @@ 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 *
|
||||
from .common import *
|
||||
from .logsettings import get_logger_config
|
||||
from .dev import *
|
||||
|
||||
if 'eecs1' in socket.gethostname():
|
||||
MITX_ROOT_URL = '/mitx2'
|
||||
|
||||
@@ -13,7 +13,7 @@ Dir structure:
|
||||
/log # Where we're going to write log files
|
||||
|
||||
"""
|
||||
from envs.dev import *
|
||||
from .dev import *
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
||||
@@ -7,8 +7,8 @@ sessions. Assumes structure:
|
||||
/mitx # The location of this repo
|
||||
/log # Where we're going to write log files
|
||||
"""
|
||||
from envs.common import *
|
||||
from envs.logsettings import get_logger_config
|
||||
from .common import *
|
||||
from .logsettings import get_logger_config
|
||||
|
||||
STATIC_GRAB = True
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ sessions. Assumes structure:
|
||||
/mitx # The location of this repo
|
||||
/log # Where we're going to write log files
|
||||
"""
|
||||
from envs.common import *
|
||||
from envs.logsettings import get_logger_config
|
||||
from .common import *
|
||||
from .logsettings import get_logger_config
|
||||
import os
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
||||
@@ -7,8 +7,8 @@ sessions. Assumes structure:
|
||||
/mitx # The location of this repo
|
||||
/log # Where we're going to write log files
|
||||
"""
|
||||
from envs.common import *
|
||||
from envs.logsettings import get_logger_config
|
||||
from .common import *
|
||||
from .logsettings import get_logger_config
|
||||
import os
|
||||
|
||||
DEBUG = True
|
||||
|
||||
Reference in New Issue
Block a user