aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/views.py
diff options
context:
space:
mode:
authorSimon Law <simon.law@ecometrica.com>2012-07-25 13:33:03 -0400
committerSimon Law <simon.law@ecometrica.com>2012-07-25 13:33:03 -0400
commit18132dc19a5bbfe094269d4d0152f3586115306f (patch)
treeee56fa3fb39c2d9377fa33e43b563139ea0ac931 /wkhtmltopdf/views.py
parent22d2721030ccc81dff23093321290b6ffda6d5fd (diff)
downloaddjango-wkhtmltopdf-18132dc19a5bbfe094269d4d0152f3586115306f.tar.gz
django-wkhtmltopdf-18132dc19a5bbfe094269d4d0152f3586115306f.tar.bz2
django-wkhtmltopdf-18132dc19a5bbfe094269d4d0152f3586115306f.zip
settings.WKHTMLTOPDF_DEBUG defaults to settings.DEBUG.
Diffstat (limited to 'wkhtmltopdf/views.py')
-rw-r--r--wkhtmltopdf/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index ad69874..fff98c8 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -121,7 +121,7 @@ class PDFTemplateResponse(TemplateResponse, PDFResponse):
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
- debug = getattr(settings, 'WKHTMLTOPDF_DEBUG', False)
+ debug = getattr(settings, 'WKHTMLTOPDF_DEBUG', settings.DEBUG)
input_file = header_file = footer_file = None
header_filename = footer_filename = None