#15880: manage.py: difficult to run in background (and crashes when input isn't 
a
terminal)
------------------------+--------------------------------------------
 Reporter:  dstndstn@…  |          Owner:  nobody
     Type:  Bug         |         Status:  new
Milestone:              |      Component:  Core (Management commands)
  Version:  1.3         |       Severity:  Normal
 Keywords:              |   Triage Stage:  Unreviewed
Has patch:  0           |  Easy pickings:  0
------------------------+--------------------------------------------
 This is with Django 1.3, and seems to be different than previous releases.

 When I try to run manage.py in the background   (python manage.py >
 django.log 2>&1 &)  the process stalls.

 When I try to pipe /dev/null to stdin it crashes as shown below.

 thanks!

 {{{
 # python manage.py --version
 1.3

 # python manage.py runserver < /dev/null
 Validating models...

 Traceback (most recent call last):
   File "manage.py", line 11, in <module>
     execute_manager(settings)
   File
 "/usr/local/django-1.3/lib/python/django/core/management/__init__.py",
 line 438, in execute_manager
     utility.execute()
   File
 "/usr/local/django-1.3/lib/python/django/core/management/__init__.py",
 line 379, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/usr/local/django-1.3/lib/python/django/core/management/base.py",
 line 191, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "/usr/local/django-1.3/lib/python/django/core/management/base.py",
 line 220, in execute
     output = self.handle(*args, **options)
   File
 
"/usr/local/django-1.3/lib/python/django/core/management/commands/runserver.py",
 line 67, in handle
     self.run(*args, **options)
   File
 
"/usr/local/django-1.3/lib/python/django/core/management/commands/runserver.py",
 line 76, in run
 0 errors found
     autoreload.main(self.inner_run, args, options)
   File "/usr/local/django-1.3/lib/python/django/utils/autoreload.py", line
 131, in main
 Django version 1.3, using settings 'astrometry_gsoc_challenge.settings'
 Development server is running at http://**************/
 Quit the server with CONTROL-C.
     reloader(main_func, args, kwargs)
   File "/usr/local/django-1.3/lib/python/django/utils/autoreload.py", line
 104, in python_reloader
     reloader_thread()
   File "/usr/local/django-1.3/lib/python/django/utils/autoreload.py", line
 83, in reloader_thread
     ensure_echo_on()
   File "/usr/local/django-1.3/lib/python/django/utils/autoreload.py", line
 77, in ensure_echo_on
     attr_list = termios.tcgetattr(fd)
 termios.error: (25, 'Inappropriate ioctl for device')
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15880>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to