Skip to content
Snippets Groups Projects
Commit 95c09473 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-45: make the RTSM plot directory configurable

parent c8a36a6e
No related branches found
No related tags found
1 merge request!89Monitoring maintenance Epic branch merge
......@@ -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())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment