Changed 'Send to DPaste' link (from [6820]) on debug page to wording that's much less inside-basebally. Also changed it so that the button only shows up after clicking 'Switch to copy-and-paste view', so people know what they're getting into. Also unconverted some XHTML tags, as the page uses an HTML 4.01 doctype.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
803b95c6a4
commit
2863b28627
|
@ -142,9 +142,9 @@ def technical_500_response(request, exc_type, exc_value, tb):
|
||||||
'request': request,
|
'request': request,
|
||||||
'request_protocol': request.is_secure() and "https" or "http",
|
'request_protocol': request.is_secure() and "https" or "http",
|
||||||
'settings': get_safe_settings(),
|
'settings': get_safe_settings(),
|
||||||
'sys_executable' : sys.executable,
|
'sys_executable': sys.executable,
|
||||||
'sys_version_info' : '%d.%d.%d' % sys.version_info[0:3],
|
'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
|
||||||
'django_version_info' : get_version(),
|
'django_version_info': get_version(),
|
||||||
'template_info': template_info,
|
'template_info': template_info,
|
||||||
'template_does_not_exist': template_does_not_exist,
|
'template_does_not_exist': template_does_not_exist,
|
||||||
'loader_debug_info': loader_debug_info,
|
'loader_debug_info': loader_debug_info,
|
||||||
|
@ -230,8 +230,8 @@ TECHNICAL_500_TEMPLATE = """
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<meta name="robots" content="NONE,NOARCHIVE" />
|
<meta name="robots" content="NONE,NOARCHIVE">
|
||||||
<title>{{ exception_type }} at {{ request.path|escape }}</title>
|
<title>{{ exception_type }} at {{ request.path|escape }}</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html * { padding:0; margin:0; }
|
html * { padding:0; margin:0; }
|
||||||
|
@ -460,10 +460,10 @@ TECHNICAL_500_TEMPLATE = """
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
|
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
|
||||||
<div id="pastebinTraceback" class="pastebin">
|
<div id="pastebinTraceback" class="pastebin">
|
||||||
<input type="hidden" name="language" value="PythonConsole" />
|
<input type="hidden" name="language" value="PythonConsole">
|
||||||
<input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}" />
|
<input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}">
|
||||||
<input type="hidden" name="source" value="Django Dpaste Agent" />
|
<input type="hidden" name="source" value="Django Dpaste Agent">
|
||||||
<input type="hidden" name="poster" value="Django" />
|
<input type="hidden" name="poster" value="Django">
|
||||||
<textarea name="content" id="traceback_area" cols="140" rows="25">
|
<textarea name="content" id="traceback_area" cols="140" rows="25">
|
||||||
Environment:
|
Environment:
|
||||||
|
|
||||||
|
@ -498,9 +498,9 @@ Traceback:
|
||||||
Exception Type: {{ exception_type|escape }} at {{ request.path|escape }}
|
Exception Type: {{ exception_type|escape }} at {{ request.path|escape }}
|
||||||
Exception Value: {{ exception_value|escape }}
|
Exception Value: {{ exception_value|escape }}
|
||||||
</textarea>
|
</textarea>
|
||||||
<br/><br/>
|
<br><br>
|
||||||
|
<input type="submit" value="Post this traceback to a public Web site, for sharing with others">
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Send to DPaste">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -627,9 +627,9 @@ TECHNICAL_404_TEMPLATE = """
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<title>Page not found at {{ request.path|escape }}</title>
|
<title>Page not found at {{ request.path|escape }}</title>
|
||||||
<meta name="robots" content="NONE,NOARCHIVE" />
|
<meta name="robots" content="NONE,NOARCHIVE">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html * { padding:0; margin:0; }
|
html * { padding:0; margin:0; }
|
||||||
body * { padding:10px 20px; }
|
body * { padding:10px 20px; }
|
||||||
|
|
Loading…
Reference in New Issue