I want to run "python manage.py runningerver" from a bash script
First, if I wanted to start "python manage.py runningerver &" from the terminal, but that would not work. I found a fix for this in (https://code.djangoproject.com/changeset/16327). Manually in the terminal, "python manage.py runningerver &" works fine. I added in the bash script "python manage.py runningerver &" but it does not start the server.
Error:
File "/usr/local/lib/python2.7/dist-packages/Django-1.3-py2.7.egg/django/utils/autoreload.py", line 137, in main
reloader(main_func, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3-py2.7.egg/django/utils/autoreload.py", line 110, in python_reloader
reloader_thread()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3-py2.7.egg/django/utils/autoreload.py", line 89, in reloader_thread
ensure_echo_on()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3-py2.7.egg/django/utils/autoreload.py", line 77, in ensure_echo_on
attr_list = termios.tcgetattr(fd)
termios.error: (25, 'Inappropriate ioctl for device')
source
share