Ticket #11919: django-dpaste-optional.diff
File django-dpaste-optional.diff, 1.9 KB (added by , 15 years ago) |
---|
-
django/conf/global_settings.py
290 290 DEFAULT_TABLESPACE = '' 291 291 DEFAULT_INDEX_TABLESPACE = '' 292 292 293 # Whether to activate a dpaste.com form in the debug view. 294 ENABLE_DPASTE = True 295 293 296 ############## 294 297 # MIDDLEWARE # 295 298 ############## -
django/views/debug.py
517 517 </ul> 518 518 </div> 519 519 {% endautoescape %} 520 <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> 520 <form action="{% if settings.ENABLE_DPASTE %}http://dpaste.com/{% endif %}" 521 name="pasteform" id="pasteform" method="post"> 521 522 <div id="pastebinTraceback" class="pastebin"> 522 523 <input type="hidden" name="language" value="PythonConsole"> 523 524 <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path_info|escape }}"> … … 557 558 Exception Type: {{ exception_type|escape }} at {{ request.path_info|escape }} 558 559 Exception Value: {{ exception_value|escape }} 559 560 </textarea> 561 {% if settings.ENABLE_DPASTE %} 560 562 <br><br> 561 563 <input type="submit" value="Share this traceback on a public Web site"> 564 {% endif %} 562 565 </div> 563 566 </form> 564 567 </div> -
docs/ref/settings.txt
447 447 448 448 Whether to use a TLS (secure) connection when talking to the SMTP server. 449 449 450 .. setting:: ENABLE_DPASTE 451 452 ENABLE_DPASTE 453 ------------- 454 455 .. versionadded:: 1.2 456 457 Default: ``True`` 458 459 Whether to render a form in the debug view that can submit the traceback to 460 dpaste.com. 461 450 462 .. setting:: FILE_CHARSET 451 463 452 464 FILE_CHARSET