3👍
Summarising the investigation in the comments…
A good way to investigate these sorts of problems is to use pystuck.
In this case, it would appear to have been some sort of internal dependency on IPython as installing pystuck also installs IPython and the bug no longer reproduces with Both installed.
11👍
The problem is python.exe itself has issues with gitbash. Supposedly, it has something to do with the ncurses library.
The solution is to type “winpty python.exe” instead of python. “winpty python.exe manage.py shell” should work. You can also create an alias to bypass the issue. Typing “alias python=’winpty python.exe'” will make it so “python manage.py shell” works as it should.
This answer explains it better:
Python not working in the command line of git bash
- How to get max value in django ORM
- Python multiprocessing Pool hangs on ubuntu server
- How to filter search by values that are not available
0👍
I don’t have idea for the commands shell
, and dbshell
, but for runserver
command, I had same issue. I solved running
python manage.py runserver --noreload
Go to http://127.0.0.1:8000/ and refresh the browser. Your terminal must show the info of your website
- Django StaticFiles and Amazon S3: How to detect modified files?
- Filter Django Haystack results like QuerySet?
- Supervisorctl always reports error: ERROR (no such file)
- Django StaticFiles and Amazon S3: How to detect modified files?
- Resize image maintaining aspect ratio AND making portrait and landscape images exact same size?