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
348cfccd
Unverified
Kaydet (Commit)
348cfccd
authored
Tem 23, 2016
tarafından
Jon Dufresne
Kaydeden (comit)
Markus Holtermann
Tem 24, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26938 -- Fixed invalid HTML in template postmortem on the debug page.
üst
b2e54aec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
debug.py
django/views/debug.py
+0
-1
1.9.9.txt
docs/releases/1.9.9.txt
+2
-1
test_debug.py
tests/view_tests/tests/test_debug.py
+8
-0
No files found.
django/views/debug.py
Dosyayı görüntüle @
348cfccd
...
...
@@ -726,7 +726,6 @@ TECHNICAL_500_TEMPLATE = ("""
{
%
for attempt in entry.tried
%
}
<li><code>{{ attempt.0.loader_name }}</code>: {{ attempt.0.name }} ({{ attempt.1 }})</li>
{
%
endfor
%
}
</ul>
{
%
else
%
}
<li>This engine did not provide a list of tried templates.</li>
{
%
endif
%
}
...
...
docs/releases/1.9.9.txt
Dosyayı görüntüle @
348cfccd
...
...
@@ -9,4 +9,5 @@ Django 1.9.9 fixes several bugs in 1.9.8.
Bugfixes
========
* ...
* Fixed invalid HTML in template postmortem on the debug page
(:ticket:`26938`).
tests/view_tests/tests/test_debug.py
Dosyayı görüntüle @
348cfccd
...
...
@@ -169,6 +169,14 @@ class DebugViewTests(LoggingCaptureMixin, SimpleTestCase):
}]):
response
=
self
.
client
.
get
(
reverse
(
'raises_template_does_not_exist'
,
kwargs
=
{
"path"
:
template_name
}))
self
.
assertContains
(
response
,
"
%
s (Source does not exist)"
%
template_path
,
status_code
=
500
,
count
=
2
)
# Assert as HTML.
self
.
assertContains
(
response
,
'<li><code>django.template.loaders.filesystem.Loader</code>: '
'
%
s (Source does not exist)</li>'
%
os
.
path
.
join
(
tempdir
,
'notfound.html'
),
status_code
=
500
,
html
=
True
,
)
def
test_no_template_source_loaders
(
self
):
"""
...
...
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