<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hey Jeroen,</div><div><br></div><div>As I learned so far, using WSGI to combine Django and Twisted isn't a bad thing in general.</div><div>It's just that you need to align your code and 'mental model' to develop multi-threaded (WSGI) or asynchronous (if that makes any difference to you at all).</div><div><br></div><div>In my special case, I develop a network middleware system where thread-safetiness is extremely important and it's more than realistic that&nbsp;</div><div>If I'd use non-thread-safe techniques, my modules will bite each other :)&nbsp;</div><div><br></div><div>So I think you're good (but I'm still a Twisted noob).</div><div><br></div><div>Cheers</div><div>Fabian</div><div><br></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Jeroen van Veen &lt;<a href="mailto:j.veenvan@gmail.com">j.veenvan@gmail.com</a>&gt;<br><span style="font-weight:bold">Reply-To: </span> Twisted general discussion &lt;<a href="mailto:twisted-python@twistedmatrix.com">twisted-python@twistedmatrix.com</a>&gt;<br><span style="font-weight:bold">Date: </span> Tue, 20 Sep 2011 21:33:39 +0200<br><span style="font-weight:bold">To: </span> Twisted general discussion &lt;<a href="mailto:twisted-python@twistedmatrix.com">twisted-python@twistedmatrix.com</a>&gt;<br><span style="font-weight:bold">Subject: </span> Re: [Twisted-Python] Twisted-Python Digest, Vol 90, Issue 16<br></div><div><br></div>For this websocket cms project im working on, i also run django in a wsgi container. I wonder if im using &nbsp;it the right way? (<a href="https://github.com/phrearch/hwios/blob/master/services/web_ui/service.py">https://github.com/phrearch/hwios/blob/master/services/web_ui/service.py</a>)<div><br></div><div>cheers,</div><div><br></div><div>Jeroen<br><br><div class="gmail_quote">2011/9/20 Glyph Lefkowitz <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com">glyph@twistedmatrix.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div class="im"><br><div><div>On Sep 20, 2011, at 1:12 PM, Fabian Rothfuchs wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Menlo;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:monospace">I feel quite happy with that solution till now (planning since 4 hours and<br>
it seems like it could be really working).<br></span></span></blockquote></div><br></div><div>Great, glad to hear it. &nbsp;Let us know how it goes!</div></div><br>_______________________________________________<br>
Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br><br></blockquote></div><br></div>
_______________________________________________
Twisted-Python mailing list
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
</span></body></html>