From 618a8996815f64d8cb05e21952cbdb7d6382de73 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Wed, 25 Jul 2012 17:28:35 +0200 Subject: [PATCH] set DEBUG=False in settings.py. Adjusted urls.py to use static files. --- extras/website/website/settings.py | 2 +- extras/website/website/urls.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/extras/website/website/settings.py b/extras/website/website/settings.py index 844f94da2..710514341 100644 --- a/extras/website/website/settings.py +++ b/extras/website/website/settings.py @@ -1,7 +1,7 @@ # Django settings for website project. import os -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( diff --git a/extras/website/website/urls.py b/extras/website/website/urls.py index 77725ea25..f78af4ede 100644 --- a/extras/website/website/urls.py +++ b/extras/website/website/urls.py @@ -1,6 +1,8 @@ from django.conf.urls import patterns, include, url from django.conf.urls.i18n import i18n_patterns +from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView + from website import views #from views import TemplateView @@ -30,3 +32,7 @@ urlpatterns = i18n_patterns('', url(r'^impressum/$', TemplateView.as_view(template_name="impressum.html"), name='impressum',), url(r'^about/press/20110915/$', TemplateView.as_view(template_name="pm-20110915.html"), name='pm-20110915',), ) + +urlpatterns += patterns('django.contrib.staticfiles.views', + url(r'^static/(?P.*)$', 'serve', {'insecure':True}), +) \ No newline at end of file