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
e2cb1018
Kaydet (Commit)
e2cb1018
authored
Nis 26, 2016
tarafından
eltronix
Kaydeden (comit)
Tim Graham
Nis 26, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed reference to Question model in management command how-to.
üst
a5033dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
custom-management-commands.txt
docs/howto/custom-management-commands.txt
+3
-3
No files found.
docs/howto/custom-management-commands.txt
Dosyayı görüntüle @
e2cb1018
...
...
@@ -49,7 +49,7 @@ To implement the command, edit ``polls/management/commands/closepoll.py`` to
look like this::
from django.core.management.base import BaseCommand, CommandError
from polls.models import Poll
from polls.models import
Question as
Poll
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
...
...
@@ -88,8 +88,8 @@ The new custom command can be called using ``python manage.py closepoll
The ``handle()`` method takes one or more ``poll_ids`` and sets ``poll.opened``
to ``False`` for each one. If the user referenced any nonexistent polls, a
:exc:`CommandError` is raised. The ``poll.opened`` attribute does not exist in
the :doc:`tutorial</intro/tutorial01>` and was added to
``polls.models.Poll``
for this example.
the :doc:`tutorial</intro/tutorial01>` and was added to
``polls.models.Question``
for this example.
.. _custom-commands-options:
...
...
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