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
18192b9f
Kaydet (Commit)
18192b9f
authored
Ock 17, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced deprecated requires_model_validation in docs.
üst
df3f3bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
custom-management-commands.txt
docs/howto/custom-management-commands.txt
+6
-8
No files found.
docs/howto/custom-management-commands.txt
Dosyayı görüntüle @
18192b9f
...
@@ -346,17 +346,15 @@ the :meth:`~BaseCommand.handle` method must be implemented.
...
@@ -346,17 +346,15 @@ the :meth:`~BaseCommand.handle` method must be implemented.
.. method:: BaseCommand.get_version()
.. method:: BaseCommand.get_version()
Return
the Django version, which should be correct for all
Return
s the Django version, which should be correct for all built-in Django
built-in Django commands. User-supplied commands can
commands. User-supplied commands can override this method to return their
o
verride this method to return their o
wn version.
own version.
.. method:: BaseCommand.execute(*args, **options)
.. method:: BaseCommand.execute(*args, **options)
Try to execute this command, performing model validation if
Tries to execute this command, performing system checks if needed (as
needed (as controlled by the attribute
controlled by the :attr:`requires_system_checks` attribute). If the command
:attr:`requires_model_validation`). If the command raises a
raises a :class:`CommandError`, it's intercepted and printed to stderr.
:class:`CommandError`, intercept it and print it sensibly to
stderr.
.. admonition:: Calling a management command in your code
.. admonition:: Calling a management command in your code
...
...
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