From fd6961234a2dc815bdb7f3c019212bc74961704f Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 16 Jul 2012 18:13:53 +0200 Subject: [PATCH] set DEBUG=False in default.settings.py --- openslides/default.settings.py | 2 +- openslides/urls.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/openslides/default.settings.py b/openslides/default.settings.py index c6df65fe7..39599f79e 100644 --- a/openslides/default.settings.py +++ b/openslides/default.settings.py @@ -12,7 +12,7 @@ from openslides_settings import * # Use 'DEBUG = True' to get more details for server errors (Default for relaeses: 'False') -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG # Set timezone diff --git a/openslides/urls.py b/openslides/urls.py index e9b93fd53..47dd142cf 100644 --- a/openslides/urls.py +++ b/openslides/urls.py @@ -12,9 +12,11 @@ from django.conf import settings from django.conf.urls.defaults import patterns, url, include +from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.shortcuts import redirect from django.utils.importlib import import_module + from openslides.utils.views import FrontPage handler500 = 'openslides.utils.views.server_error' @@ -32,6 +34,10 @@ urlpatterns = patterns('', (r'^i18n/', include('django.conf.urls.i18n')), ) +urlpatterns += patterns('django.contrib.staticfiles.views', + url(r'^static/(?P.*)$', 'serve', {'insecure':True}), +) + js_info_dict = { 'packages': [], }