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
aa399f6b
Kaydet (Commit)
aa399f6b
authored
Eyl 08, 2014
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use "catch" instead of "trap" for exceptions.
This is the idiomatic word in the Python world.
üst
d4467ede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
createsuperuser.py
django/contrib/auth/management/commands/createsuperuser.py
+2
-2
pagination.txt
docs/topics/pagination.txt
+2
-2
No files found.
django/contrib/auth/management/commands/createsuperuser.py
Dosyayı görüntüle @
aa399f6b
...
...
@@ -76,8 +76,8 @@ class Command(BaseCommand):
else
:
# Prompt for username/password, and any other required fields.
# Enclose this whole thing in a try/except to
trap for a
#
keyboard i
nterrupt and exit gracefully.
# Enclose this whole thing in a try/except to
catch
#
KeyboardI
nterrupt and exit gracefully.
default_username
=
get_default_username
()
try
:
...
...
docs/topics/pagination.txt
Dosyayı görüntüle @
aa399f6b
...
...
@@ -204,8 +204,8 @@ Attributes
The :meth:`Paginator.page` method raises an exception if the requested page is
invalid (i.e., not an integer) or contains no objects. Generally, it's enough
to
trap the ``InvalidPage`` exception, but if you'd like more granularity, you
can trap
either of the following exceptions:
to
catch the ``InvalidPage`` exception, but if you'd like more granularity,
you can catch
either of the following exceptions:
.. exception:: PageNotAnInteger
...
...
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