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