Thursday, July 31, 2014

Redirect with string?

Hi all,

I have a thermal line printer (a Zebra LP2824 fwiw) and I've
discovered/worked out that I can print with it by just sending a text,
a la:

cat filename | nc <ipaddress> <portnumber>

I tried this in my view:

return redirect("<ipaddress>", "string")

but it's printing out the HttpResponse object.

How would I send a string to the IP in question from a view?


You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
The Most Terrifying Thought Experiment of All Time

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment