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
f65b1aee
Kaydet (Commit)
f65b1aee
authored
Ara 31, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25838 -- Removed the deprecated shell --plain option.
üst
9d304b26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
shell.py
django/core/management/commands/shell.py
+0
-14
django-admin.txt
docs/ref/django-admin.txt
+0
-5
2.0.txt
docs/releases/2.0.txt
+2
-0
No files found.
django/core/management/commands/shell.py
Dosyayı görüntüle @
f65b1aee
import
os
import
select
import
sys
import
warnings
from
django.core.management
import
BaseCommand
,
CommandError
from
django.utils.datastructures
import
OrderedSet
from
django.utils.deprecation
import
RemovedInDjango20Warning
class
Command
(
BaseCommand
):
...
...
@@ -19,11 +17,6 @@ class Command(BaseCommand):
shells
=
[
'ipython'
,
'bpython'
,
'python'
]
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'--plain'
,
action
=
'store_true'
,
dest
=
'plain'
,
help
=
'Tells Django to use plain Python, not IPython or bpython. '
'Deprecated, use the `-i python` or `--interface python` option instead.'
,
)
parser
.
add_argument
(
'--no-startup'
,
action
=
'store_true'
,
dest
=
'no_startup'
,
help
=
'When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.'
,
...
...
@@ -83,13 +76,6 @@ class Command(BaseCommand):
code
.
interact
(
local
=
imported_objects
)
def
handle
(
self
,
**
options
):
if
options
[
'plain'
]:
warnings
.
warn
(
"The --plain option is deprecated in favor of the -i python or --interface python option."
,
RemovedInDjango20Warning
)
options
[
'interface'
]
=
'python'
# Execute the command and exit.
if
options
[
'command'
]:
exec
(
options
[
'command'
])
...
...
docs/ref/django-admin.txt
Dosyayı görüntüle @
f65b1aee
...
...
@@ -951,11 +951,6 @@ Python interpreter, use ``python`` as the interface name, like so::
django-admin shell -i python
.. deprecated:: 1.10
In older versions, use the ``--plain`` option instead of ``-i python``. This
is deprecated and will be removed in Django 2.0.
.. _IPython: https://ipython.org/
.. _bpython: http://bpython-interpreter.org/
...
...
docs/releases/2.0.txt
Dosyayı görüntüle @
f65b1aee
...
...
@@ -338,3 +338,5 @@ these features.
is removed.
* ``django.utils.functional.allow_lazy()`` is removed.
* The ``shell --plain`` option is removed.
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