Commit 54756bf5 by Calen Pennington

Use relative includes in settings files

parent fa42022e
...@@ -8,8 +8,8 @@ Common traits: ...@@ -8,8 +8,8 @@ Common traits:
""" """
import json import json
from envs.logsettings import get_logger_config from .logsettings import get_logger_config
from envs.common import * from .common import *
############################### ALWAYS THE SAME ################################ ############################### ALWAYS THE SAME ################################
DEBUG = False DEBUG = False
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
These are debug machines used for content creators, so they're kind of a cross These are debug machines used for content creators, so they're kind of a cross
between dev machines and AWS machines. between dev machines and AWS machines.
""" """
from envs.aws import * from .aws import *
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = True TEMPLATE_DEBUG = True
......
...@@ -13,9 +13,9 @@ import socket ...@@ -13,9 +13,9 @@ import socket
if 'eecs1' in socket.gethostname(): if 'eecs1' in socket.gethostname():
MITX_ROOT_URL = '/mitx2' MITX_ROOT_URL = '/mitx2'
from envs.common import * from .common import *
from envs.logsettings import get_logger_config from .logsettings import get_logger_config
from dev import * from .dev import *
if 'eecs1' in socket.gethostname(): if 'eecs1' in socket.gethostname():
MITX_ROOT_URL = '/mitx2' MITX_ROOT_URL = '/mitx2'
......
...@@ -13,7 +13,7 @@ Dir structure: ...@@ -13,7 +13,7 @@ Dir structure:
/log # Where we're going to write log files /log # Where we're going to write log files
""" """
from envs.dev import * from .dev import *
DATABASES = { DATABASES = {
'default': { 'default': {
......
...@@ -7,8 +7,8 @@ sessions. Assumes structure: ...@@ -7,8 +7,8 @@ sessions. Assumes structure:
/mitx # The location of this repo /mitx # The location of this repo
/log # Where we're going to write log files /log # Where we're going to write log files
""" """
from envs.common import * from .common import *
from envs.logsettings import get_logger_config from .logsettings import get_logger_config
STATIC_GRAB = True STATIC_GRAB = True
......
...@@ -7,8 +7,8 @@ sessions. Assumes structure: ...@@ -7,8 +7,8 @@ sessions. Assumes structure:
/mitx # The location of this repo /mitx # The location of this repo
/log # Where we're going to write log files /log # Where we're going to write log files
""" """
from envs.common import * from .common import *
from envs.logsettings import get_logger_config from .logsettings import get_logger_config
import os import os
INSTALLED_APPS = [ INSTALLED_APPS = [
......
...@@ -7,8 +7,8 @@ sessions. Assumes structure: ...@@ -7,8 +7,8 @@ sessions. Assumes structure:
/mitx # The location of this repo /mitx # The location of this repo
/log # Where we're going to write log files /log # Where we're going to write log files
""" """
from envs.common import * from .common import *
from envs.logsettings import get_logger_config from .logsettings import get_logger_config
import os import os
DEBUG = True DEBUG = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment