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
823af53b
Kaydet (Commit)
823af53b
authored
Ock 09, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27707 -- Removed shell support for IPython < 1.0.
üst
ee1c1c69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
27 deletions
+3
-27
shell.py
django/core/management/commands/shell.py
+1
-27
1.11.txt
docs/releases/1.11.txt
+2
-0
No files found.
django/core/management/commands/shell.py
Dosyayı görüntüle @
823af53b
...
...
@@ -37,36 +37,10 @@ class Command(BaseCommand):
help
=
'Instead of opening an interactive shell, run a command as Django and exit.'
,
)
def
_ipython_pre_011
(
self
):
"""Start IPython pre-0.11"""
from
IPython.Shell
import
IPShell
shell
=
IPShell
(
argv
=
[])
shell
.
mainloop
()
def
_ipython_pre_100
(
self
):
"""Start IPython pre-1.0.0"""
from
IPython.frontend.terminal.ipapp
import
TerminalIPythonApp
app
=
TerminalIPythonApp
.
instance
()
app
.
initialize
(
argv
=
[])
app
.
start
()
def
_ipython
(
self
):
"""Start IPython >= 1.0"""
def
ipython
(
self
,
options
):
from
IPython
import
start_ipython
start_ipython
(
argv
=
[])
def
ipython
(
self
,
options
):
"""Start any version of IPython"""
for
ip
in
(
self
.
_ipython
,
self
.
_ipython_pre_100
,
self
.
_ipython_pre_011
):
try
:
ip
()
except
ImportError
:
pass
else
:
return
# no IPython, raise ImportError
raise
ImportError
(
"No IPython"
)
def
bpython
(
self
,
options
):
import
bpython
bpython
.
embed
()
...
...
docs/releases/1.11.txt
Dosyayı görüntüle @
823af53b
...
...
@@ -712,6 +712,8 @@ Miscellaneous
* Support for ``cx_Oracle`` < 5.2 is removed.
* Support for IPython < 1.0 is removed from the ``shell`` command.
.. _deprecated-features-1.11:
Features deprecated in 1.11
...
...
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