aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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