Django

Code

Changeset 6882

Show
Ignore:
Timestamp:
12/04/07 00:39:05 (1 year ago)
Author:
adrian
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/debug.py

    r6820 r6882  
    143143        'request_protocol': request.is_secure() and "https" or "http", 
    144144        'settings': get_safe_settings(), 
    145         'sys_executable' : sys.executable, 
    146         'sys_version_info' : '%d.%d.%d' % sys.version_info[0:3], 
    147         'django_version_info' : get_version(), 
     145        'sys_executable': sys.executable, 
     146        'sys_version_info': '%d.%d.%d' % sys.version_info[0:3], 
     147        'django_version_info': get_version(), 
    148148        'template_info': template_info, 
    149149        'template_does_not_exist': template_does_not_exist, 
     
    231231<html lang="en"> 
    232232<head> 
    233   <meta http-equiv="content-type" content="text/html; charset=utf-8" /
    234   <meta name="robots" content="NONE,NOARCHIVE" /
     233  <meta http-equiv="content-type" content="text/html; charset=utf-8"
     234  <meta name="robots" content="NONE,NOARCHIVE"
    235235  <title>{{ exception_type }} at {{ request.path|escape }}</title> 
    236236  <style type="text/css"> 
     
    461461  <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> 
    462462  <div id="pastebinTraceback" class="pastebin"> 
    463     <input type="hidden" name="language" value="PythonConsole" /
    464     <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}" /
    465     <input type="hidden" name="source" value="Django Dpaste Agent" /
    466     <input type="hidden" name="poster" value="Django" /
     463    <input type="hidden" name="language" value="PythonConsole"
     464    <input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}"
     465    <input type="hidden" name="source" value="Django Dpaste Agent"
     466    <input type="hidden" name="poster" value="Django"
    467467    <textarea name="content" id="traceback_area" cols="140" rows="25"> 
    468468Environment: 
     
    499499Exception Value: {{ exception_value|escape }} 
    500500</textarea> 
    501   <br/><br/> 
     501  <br><br> 
     502  <input type="submit" value="Post this traceback to a public Web site, for sharing with others"> 
    502503  </div> 
    503 <input type="submit" value="Send to DPaste">  
    504504</form> 
    505505</div> 
     
    628628<html lang="en"> 
    629629<head> 
    630   <meta http-equiv="content-type" content="text/html; charset=utf-8" /
     630  <meta http-equiv="content-type" content="text/html; charset=utf-8"
    631631  <title>Page not found at {{ request.path|escape }}</title> 
    632   <meta name="robots" content="NONE,NOARCHIVE" /
     632  <meta name="robots" content="NONE,NOARCHIVE"
    633633  <style type="text/css"> 
    634634    html * { padding:0; margin:0; }