Good morning, I've been writing a Django app to create a dynamic net boot program to boot configs created by users from a web interface using a tool called gPXE. I've exhausted my troubleshooting methods and can't seem to figure out why gPXE can boot from a static file served directly from apache but having Django serve a templated or static version of that same file causes gPXE to fail. I'm using Django 1.2.1 and gPXE 1.0.1 and the issue is present using either the Apache web server or Django's dev server.
Serving this directly works: menu hshift 0 menu width 49 menu margin 8 menu color title * #FFFFFFFF * menu color border * #00000000 #00000000 none menu color sel * #ffffffff #999999ff * menu color hotsel 1;7;37;40 #ffffffff #999999ff * menu color tabmsg * #ffffffff #00000000 * menu vshift 8 menu rows 10 menu helpmsgrow 16 menu background /netboot/images/boot.png menu title OSTG boot menu label Actual Ubuntu installer menu label Actual Ubuntu installer text help Proof of concept load of locally hosted Ubuntu installer endtext kernel /netboot/14/boot.gpxe It doesn't work though if it is served either statically or any derivative of an http response using Django. A hard-coded http response follows that serves an identical file using my web browser but fails to load if accessed in gPXE: def bootmenu(request): menu = "menu hshift 0\nmenu width 49\nmenu margin 8\nmenu color title * #FFFFFFFF *\nmenu color border * #00000000 #00000000 none\nmenu color sel * #ffffffff #999999ff *\nmenu color hotsel 1;7;37;40 #ffffffff #999999ff *\nmenu color tabmsg * #ffffffff #00000000 *\nmenu vshift 8\nmenu rows 10\nmenu helpmsgrow 16\nmenu background /netboot/images/boot.png\n\n \nmenu title OSTG boot menu\n\n\n \nlabel Actual Ubuntu installer \n menu label Actual Ubuntu installer\n text help\nProof of concept load of locally hosted Ubuntu installer\n endtext\n kernel /netboot/ 14/boot.gpxe\n" return HttpResponse(menu, mimetype="plain/text") What makes Django's text serving different? What can I do to troubleshoot this issue further? Am I just missing something about how text files are served? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.