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
f0ffa3f4
Kaydet (Commit)
f0ffa3f4
authored
Eki 01, 2017
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Eki 01, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #27025, #28593 -- Fixed "invalid escape sequence" warnings in urls/resolvers.py.
üst
41406bf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
resolvers.py
django/urls/resolvers.py
+2
-2
No files found.
django/urls/resolvers.py
Dosyayı görüntüle @
f0ffa3f4
...
...
@@ -119,7 +119,7 @@ class CheckURLMixin:
# Skip check as it can be useful to start a URL pattern with a slash
# when APPEND_SLASH=False.
return
[]
if
regex_pattern
.
startswith
((
'/'
,
'^/'
,
'^
\
/'
))
and
not
regex_pattern
.
endswith
(
'/'
):
if
regex_pattern
.
startswith
((
'/'
,
'^/'
,
'^
\
\
/'
))
and
not
regex_pattern
.
endswith
(
'/'
):
warning
=
Warning
(
"Your URL pattern {} has a route beginning with a '/'. Remove this "
"slash as it is unnecessary. If this pattern is targeted in an "
...
...
@@ -187,7 +187,7 @@ class RegexPattern(CheckURLMixin):
_PATH_PARAMETER_COMPONENT_RE
=
re
.
compile
(
'<(?:(?P<converter>[^>:]+):)?(?P<parameter>
\
w+)>'
r
'<(?:(?P<converter>[^>:]+):)?(?P<parameter>\w+)>'
)
...
...
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