set DEBUG=False in settings.py. Adjusted urls.py to use static files.

This commit is contained in:
Emanuel Schuetze 2012-07-25 17:28:35 +02:00
parent 1f7d4eaeb4
commit 618a899681
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Django settings for website project.
import os
DEBUG = True
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (

View File

@ -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<path>.*)$', 'serve', {'insecure':True}),
)