Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
7902fd74
Kaydet (Commit)
7902fd74
authored
May 30, 2013
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1027 from intgr/debug_no_exc_message
Clearer explanation when exception has no message
üst
5074c75a
172b50b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
debug.py
django/views/debug.py
+2
-2
test_debug.py
tests/view_tests/tests/test_debug.py
+1
-1
No files found.
django/views/debug.py
Dosyayı görüntüle @
7902fd74
...
...
@@ -595,7 +595,7 @@ TECHNICAL_500_TEMPLATE = """
<body>
<div id="summary">
<h1>{
%
if exception_type
%
}{{ exception_type }}{
%
else
%
}Report{
%
endif
%
}{
%
if request
%
} at {{ request.path_info|escape }}{
%
endif
%
}</h1>
<pre class="exception_value">{
%
if exception_value
%
}{{ exception_value|force_escape }}{
%
else
%
}No exception supplied{
%
endif
%
}</pre>
<pre class="exception_value">{
%
if exception_value
%
}{{ exception_value|force_escape }}{
%
else
%
}No exception
message
supplied{
%
endif
%
}</pre>
<table class="meta">
{
%
if request
%
}
<tr>
...
...
@@ -940,7 +940,7 @@ Exception Value: {{ exception_value|force_escape }}
"""
TECHNICAL_500_TEXT_TEMPLATE
=
"""{
%
load firstof from future
%
}{
%
firstof exception_type 'Report'
%
}{
%
if request
%
} at {{ request.path_info }}{
%
endif
%
}
{
%
firstof exception_value 'No exception supplied'
%
}
{
%
firstof exception_value 'No exception
message
supplied'
%
}
{
%
if request
%
}
Request Method: {{ request.META.REQUEST_METHOD }}
Request URL: {{ request.build_absolute_uri }}{
%
endif
%
}
...
...
tests/view_tests/tests/test_debug.py
Dosyayı görüntüle @
7902fd74
...
...
@@ -178,7 +178,7 @@ class ExceptionReporterTests(TestCase):
reporter
=
ExceptionReporter
(
request
,
None
,
None
,
None
)
html
=
reporter
.
get_traceback_html
()
self
.
assertIn
(
'<h1>Report at /test_view/</h1>'
,
html
)
self
.
assertIn
(
'<pre class="exception_value">No exception supplied</pre>'
,
html
)
self
.
assertIn
(
'<pre class="exception_value">No exception
message
supplied</pre>'
,
html
)
self
.
assertIn
(
'<th>Request Method:</th>'
,
html
)
self
.
assertIn
(
'<th>Request URL:</th>'
,
html
)
self
.
assertNotIn
(
'<th>Exception Type:</th>'
,
html
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment