diff --git a/LCU/Maintenance/DBInterface/django_postgresql/settings.py b/LCU/Maintenance/DBInterface/django_postgresql/settings.py index e892ce053918d0df55fec7e163afc7230cfdd044..b06a778293120772ee9768e4342b51f5c9f872ed 100644 --- a/LCU/Maintenance/DBInterface/django_postgresql/settings.py +++ b/LCU/Maintenance/DBInterface/django_postgresql/settings.py @@ -30,7 +30,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'x)5=9*2a&)32h-loh@rlt_9eyw%t$-fqao*#1j2gh^7=^bnjyy' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.environ.get('MDB_DEBUG', False) ALLOWED_HOSTS = ['lofarmonitortest.control.lofar', 'localhost', '127.0.0.1'] @@ -190,8 +190,7 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ -PATH = os.getcwd() -STATIC_ROOT = os.path.join(PATH, "static") + STATIC_URL = '/static/' MB_CONST = 1024 ** 3 @@ -203,6 +202,6 @@ REST_FRAMEWORK = { 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',) } -CELERY_RESULT_BACKEND = 'amqp://guest@localhost//' +CELERY_RESULT_BACKEND = 'amqp://guest@rabbitmq-broker//' # LOFAR SPECIFIC PARAMETERS -URL_TO_STORE_RTSM_PLOTS = PATH \ No newline at end of file +URL_TO_STORE_RTSM_PLOTS = os.environ.get('MDB_RTSM_PLOT_PATH', os.getcwd())