How to change django manage.py default shell
up vote
2
down vote
favorite
I've just installed Anaconda and what's annoying that after executing:
python manage.py shell
The IPython shell is used. I'd like to change it back to default Python distribution. I'm using Visual Studio Code and already changed it interpreter to default python 3.6. Moreover the
python
command runs normal python distribution, and the problem exists both in Visual Studio and normal cmd terminal.
python django shell anaconda ipython
add a comment |
up vote
2
down vote
favorite
I've just installed Anaconda and what's annoying that after executing:
python manage.py shell
The IPython shell is used. I'd like to change it back to default Python distribution. I'm using Visual Studio Code and already changed it interpreter to default python 3.6. Moreover the
python
command runs normal python distribution, and the problem exists both in Visual Studio and normal cmd terminal.
python django shell anaconda ipython
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I've just installed Anaconda and what's annoying that after executing:
python manage.py shell
The IPython shell is used. I'd like to change it back to default Python distribution. I'm using Visual Studio Code and already changed it interpreter to default python 3.6. Moreover the
python
command runs normal python distribution, and the problem exists both in Visual Studio and normal cmd terminal.
python django shell anaconda ipython
I've just installed Anaconda and what's annoying that after executing:
python manage.py shell
The IPython shell is used. I'd like to change it back to default Python distribution. I'm using Visual Studio Code and already changed it interpreter to default python 3.6. Moreover the
python
command runs normal python distribution, and the problem exists both in Visual Studio and normal cmd terminal.
python django shell anaconda ipython
python django shell anaconda ipython
asked Nov 7 at 22:29
tikej
244
244
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
Django 1.10+:
python manage.py shell --interface python
Django < 1.10:
python manage.py shell --plain
add a comment |
up vote
0
down vote
i dont know if you have used shell_plus.
install django-extensions
, then use python manage.py shell_plus
shell plus is a very great tool.
you can use shell / shell_plus to have a plain interface
python manage.py shell_plus --plain
Note:- its not recommended to use django-extension in prod versions. But i'm sure you would love shell_plus, as this would reduce the headache of importing all models.
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Django 1.10+:
python manage.py shell --interface python
Django < 1.10:
python manage.py shell --plain
add a comment |
up vote
2
down vote
Django 1.10+:
python manage.py shell --interface python
Django < 1.10:
python manage.py shell --plain
add a comment |
up vote
2
down vote
up vote
2
down vote
Django 1.10+:
python manage.py shell --interface python
Django < 1.10:
python manage.py shell --plain
Django 1.10+:
python manage.py shell --interface python
Django < 1.10:
python manage.py shell --plain
edited Nov 7 at 22:38
answered Nov 7 at 22:33
wim
155k47294424
155k47294424
add a comment |
add a comment |
up vote
0
down vote
i dont know if you have used shell_plus.
install django-extensions
, then use python manage.py shell_plus
shell plus is a very great tool.
you can use shell / shell_plus to have a plain interface
python manage.py shell_plus --plain
Note:- its not recommended to use django-extension in prod versions. But i'm sure you would love shell_plus, as this would reduce the headache of importing all models.
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
add a comment |
up vote
0
down vote
i dont know if you have used shell_plus.
install django-extensions
, then use python manage.py shell_plus
shell plus is a very great tool.
you can use shell / shell_plus to have a plain interface
python manage.py shell_plus --plain
Note:- its not recommended to use django-extension in prod versions. But i'm sure you would love shell_plus, as this would reduce the headache of importing all models.
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
add a comment |
up vote
0
down vote
up vote
0
down vote
i dont know if you have used shell_plus.
install django-extensions
, then use python manage.py shell_plus
shell plus is a very great tool.
you can use shell / shell_plus to have a plain interface
python manage.py shell_plus --plain
Note:- its not recommended to use django-extension in prod versions. But i'm sure you would love shell_plus, as this would reduce the headache of importing all models.
i dont know if you have used shell_plus.
install django-extensions
, then use python manage.py shell_plus
shell plus is a very great tool.
you can use shell / shell_plus to have a plain interface
python manage.py shell_plus --plain
Note:- its not recommended to use django-extension in prod versions. But i'm sure you would love shell_plus, as this would reduce the headache of importing all models.
answered Nov 8 at 0:19
Seshadri VS
18313
18313
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
add a comment |
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
I know this answer, it's just that I'd prefere to use original shell. At least to know how to change between original, anaconda, and shell-plus shells.
– tikej
Nov 8 at 10:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53198860%2fhow-to-change-django-manage-py-default-shell%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown