Using just 'ls' or something similar does not trigger the bug. You have to start a daemon from django in order to trigger it. The attached views assume cmd to be a command that takes 'start' as a parameter in order to daemonize it, so for freebsd you might have to customize the " p = subprocess.Popen([cmdname, 'start'], stdout=subprocess.PIPE) " line in order to start your daemon.
On Mar 13, 2:57 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > i am using freebsd. i do not have exim4. i tried this with 'ls' > command. > > it gives me the error below. if i output hello world instead, the > browser seems to download the page correctly and does not appear to be > stuck. i use './manage runserver'. > > Traceback (most recent call last): > > File "/usr/local/lib/python2.4/site-packages/django/core/servers/ > basehttp.py", line 273, in run > self.finish_response() > > File "/usr/local/lib/python2.4/site-packages/django/core/servers/ > basehttp.py", line 312, in finish_response > self.write(data) > > File "/usr/local/lib/python2.4/site-packages/django/core/servers/ > basehttp.py", line 383, in write > assert type(data) is StringType,"write() argument must be string" > > AssertionError: write() argument must be string > > On Mar 13, 8:46 am, "Ino Pua" <[EMAIL PROTECTED]> wrote: > > > On Mar 13, 3:37 am, "akonsu" <[EMAIL PROTECTED]> wrote: > > > > hello, > > > i do not know what causes this. > > > i am curious what happens if you replace > > > return HttpResponse(stdout or stderr) > > > with > > > return HttpResponse('hello world') > > > If I do that, 'hello world' is printed in the web browser, but its > > still stuck on loading and the same issues with not being able to > > restart the web server persists. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---