X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fplanetstack%2Fsettings.py;h=b694373da1561063d9c323032d8b7b932f3dcc8e;hb=79684afcfec1bc37e7229f67945a34b470b89476;hp=c9c4cf3b7946d5cc642563b2d00b521ef102b6df;hpb=557b6937a312d10055c8cc40285c195a320ceee3;p=plstackapi.git diff --git a/planetstack/planetstack/settings.py b/planetstack/planetstack/settings.py index c9c4cf3..b694373 100644 --- a/planetstack/planetstack/settings.py +++ b/planetstack/planetstack/settings.py @@ -81,6 +81,7 @@ STATIC_URL = '/static/' # Additional locations of static files STATICFILES_DIRS = ( "/opt/planetstack/core/static/", + "/opt/planetstack/core/xoslib/static/", # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. @@ -110,6 +111,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'core.middleware.GlobalRequestMiddleware', # Uncomment the next line for simple clickjacking protection: # 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) @@ -124,6 +126,7 @@ TEMPLATE_DIRS = ( # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "/opt/planetstack/templates", + "/opt/planetstack/core/xoslib/templates", ) INSTALLED_APPS = ( @@ -259,3 +262,4 @@ LOGGING = { BIGQUERY_TABLE = getattr(config, "bigquery_table", "demoevents") DISABLE_MINIDASHBOARD = getattr(config, "gui_disable_minidashboard", False) +