<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Gregor Müllegger's Weblog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-8a5c66b0" type="application/json" /><link>http://gremu.disqus.com/</link><description /><language>en</language><lastBuildDate>Fri, 06 Jan 2012 08:37:13 -0000</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/gremunet-latestcomments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="gremunet-latestcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/released-django-feedburner/#comment-402230088</link><description>&lt;p&gt;unfortunately, it's deprecated. Syndication framework has changed a lot.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/5y_Ssa84TcY" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexey Strelkov</dc:creator><pubDate>Fri, 06 Jan 2012 08:37:13 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-240728066</link><description>&lt;p&gt;Great module. Thanks for share it. I´m planning to use it on my webapp&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/tCS0pZxK_b4" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcos Ortiz</dc:creator><pubDate>Sat, 02 Jul 2011 17:36:36 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-206112905</link><description>&lt;p&gt; Hey,&lt;/p&gt;

&lt;p&gt;I've been working on websocket support in django for some time now in the hwios websocket cms project. It uses twisted wsgi and a twisted websocket handler. Code can be found &lt;a href="https://github.com/phrearch/hwios" rel="nofollow"&gt;https://github.com/phrearch/hw...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/OFetXocDSlU" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phrearch</dc:creator><pubDate>Wed, 18 May 2011 09:45:12 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/django-admin-read-only-permission/#comment-205869721</link><description>&lt;p&gt;Your post was very helpful. For the first con i found a solution.&lt;br&gt;Make a local copy of the admin/index.html template. Then add these lines &lt;br&gt;&amp;lt;sourcecode&amp;gt;&lt;br&gt;{% if model.perms.add and  not model.perms.change %}&lt;br&gt;                &lt;a class="changelink" href="{{ model.admin_url }}" rel="nofollow"&gt;{% trans 'View' %}&lt;/a&gt;&lt;br&gt;            {% else %}&lt;br&gt;                 &lt;br&gt;            {% endif %}&lt;br&gt;&amp;lt;/sourcecode&amp;gt;&lt;/p&gt;

&lt;p&gt;after &lt;/p&gt;

&lt;p&gt;&amp;lt;sourcecode&amp;gt;&lt;/p&gt;

&lt;p&gt;{% if model.perms.change %}&lt;br&gt;                &lt;a class="changelink" href="{{ model.admin_url }}" rel="nofollow"&gt;{% trans 'Change' %}&lt;/a&gt;&lt;br&gt;            {% else %}&lt;br&gt;                 &lt;br&gt;            {% endif %}&lt;/p&gt;

&lt;p&gt;&amp;lt;/sourcecode&amp;gt;&lt;br&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/NLG6vCPGtyY" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rag Sagar</dc:creator><pubDate>Wed, 18 May 2011 02:18:06 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/integrate-your-python-test-runner-vim/#comment-140051442</link><description>&lt;p&gt;I took your code and created a little Vim plugin called VimTestRunner. It's very alpha at the moment. I've added support for multiple languages in an attempt to make this language agnostic. However, I haven't tested the python/django thing. I have tested ruby/rspec. You can get my plugin here: &lt;a href="https://github.com/dahu/VimTestRunner" rel="nofollow"&gt;https://github.com/dahu/VimTes...&lt;/a&gt;. I would appreciate your feedback and suggestions on how to improve this plugin. :-)&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/iAAzShM2szo" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barry Arthur</dc:creator><pubDate>Thu, 03 Feb 2011 21:46:31 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/building-csync-ubuntu-910/#comment-133179045</link><description>&lt;p&gt;Thanks for the great walk-through.  I especially liked that you included the step for creating a debian package when installing.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/XjOl6xZbQYg" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pareja Mario</dc:creator><pubDate>Sun, 23 Jan 2011 00:45:01 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/django-admin-read-only-permission/#comment-112207840</link><description>&lt;p&gt;Hi Gamesbook,&lt;/p&gt;

&lt;p&gt;you can simply return any HttpResponse you want instead of raising the PermissionDenied error. So e.g. you would replace the `raise PermissionDenied` with `return render_to_response('permission_denied.html', {})`.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/5utEp-XwnoI" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Müllegger</dc:creator><pubDate>Wed, 15 Dec 2010 10:00:08 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/django-admin-read-only-permission/#comment-111096477</link><description>&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;This seems very useful; question - "The page just shows a not very user friendly Permission Denied after he tries to save." How does one change that page display?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/w90ij7VTkFM" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gamesbook</dc:creator><pubDate>Mon, 13 Dec 2010 10:23:45 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-64068127</link><description>&lt;p&gt;Amazing! I'm looking forward to hear about your experiences. I'll watch your repo on github.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/lC_FygPDrzs" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Müllegger</dc:creator><pubDate>Sat, 24 Jul 2010 14:06:38 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-64067088</link><description>&lt;p&gt;Dunno - I have yet to get my head around the whole threads thing, so bare with me: I cannot really overview any consequences : )&lt;/p&gt;

&lt;p&gt;FWIW I managed to run your example using the eventlet.server.&lt;br&gt;Instead of an '_sock' attr, it provides a get_socket() method on the wsgi input object, so I changed &lt;a href="http://websocket.py" rel="nofollow"&gt;websocket.py&lt;/a&gt; at line 86 to read:&lt;br&gt;socket = request.META['wsgi.input'].get_socket().dup()&lt;/p&gt;

&lt;p&gt;Now I can run the example like:&lt;br&gt;import eventlet&lt;br&gt;from eventlet import wsgi&lt;br&gt;wsgi.server(eventlet.listen(('', 8000)), WSGIHandler())&lt;/p&gt;

&lt;p&gt;Will play around with this a bit, I think.&lt;br&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/OQDUlbmeyFw" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carsten Kraus</dc:creator><pubDate>Sat, 24 Jul 2010 13:55:34 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-64062948</link><description>&lt;p&gt;Good idea! I will try this out at some point. But I cannot imagine yet that you can run django safely with less than one thread per request (this is the way eventbased frameworks do their work, right?).&lt;/p&gt;

&lt;p&gt;There are some things that depend on the fact that every request has its own thread, like i18n that stores the current language code in a thread variable.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/sARiuxzp8GU" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Müllegger</dc:creator><pubDate>Sat, 24 Jul 2010 13:08:57 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-64057849</link><description>&lt;p&gt;Great app - thanks a lot!&lt;/p&gt;

&lt;p&gt;An idea: gunicorn supports running django apps through eg eventlet - wouldnt that help long-lived connections already?&lt;/p&gt;

&lt;p&gt;I just tried to run the example using gunicorn but got a 500 for the websocket request though..&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/b9amdR2K1PY" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carsten Kraus</dc:creator><pubDate>Sat, 24 Jul 2010 12:11:10 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-63873623</link><description>&lt;p&gt;That sounds reasonable. I haven't thought of scaling yet - I'm not an expert in this case.&lt;br&gt;So yeah, it might be necessary to use an asynchronous platform, maybe like twisted or eventlet. Maybe django-websocket will move in this way to more work as a helper for working with django and an async server in conjunction.&lt;/p&gt;

&lt;p&gt;Every suggestion is welcome :)&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/fVFarWM2JDI" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Müllegger</dc:creator><pubDate>Fri, 23 Jul 2010 09:34:57 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/websocket-support-django/#comment-63868409</link><description>&lt;p&gt;I can't say this looks like a good idea. You're doing long-lived connections in a way that is going to require threading. django-websocket requires threading setup, and won't work if you've got processes (because you'd just have too many processes) but threads won't scale for a lot of connections at the same time, either, so its just a false safety. You need an asynchronous platform for long-lived things, and I do this by doing my app in Django and my comet and websocket in Node.js&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/rsf1HebdV4s" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Calvin Spealman</dc:creator><pubDate>Fri, 23 Jul 2010 08:52:13 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/using-ipythons-debugger-pdb-replacement/#comment-63849150</link><description>&lt;p&gt;You're totally right ofcourse. At the time I started using ipdb as debugger was no package on PyPI but its nice to see that its easier now to setup.&lt;br&gt;Thanks for pointing this out!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/h-F5dLtzWMI" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Müllegger</dc:creator><pubDate>Fri, 23 Jul 2010 05:10:56 -0000</pubDate></item><item><title>Re: Gregor Müllegger's Weblog · gremu.net</title><link>http://gremu.net/blog/2010/using-ipythons-debugger-pdb-replacement/#comment-63846644</link><description>&lt;p&gt;Why not just&lt;br&gt;&lt;/p&gt;&lt;pre&gt;easy_install ipdb&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/UcJo_yQjySM" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrey Popp</dc:creator><pubDate>Fri, 23 Jul 2010 04:33:39 -0000</pubDate></item><item><title>Re: Pros and Cons about Python 3</title><link>http://gremu.net/blog/2010/pros-and-cons-about-python-3/#comment-46753145</link><description>&lt;p&gt;You're right. I fixed it and the link should work as expected. I'm sorry :-)&lt;br&gt;As you might have noticed this blog is very new and I'm sure I haven't found every bug there.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/irjjhLDa0UA" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gregor Muellegger</dc:creator><pubDate>Mon, 18 Jan 2010 18:27:00 -0000</pubDate></item><item><title>Re: Pros and Cons about Python 3</title><link>http://gremu.net/blog/2010/pros-and-cons-about-python-3/#comment-46752418</link><description>&lt;p&gt;No links allowed? Well.. good to prevent spam, bad to include legite links^^&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/I6NxmgRxQ5k" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alain M. Lafon</dc:creator><pubDate>Sun, 17 Jan 2010 14:55:00 -0000</pubDate></item><item><title>Re: Pros and Cons about Python 3</title><link>http://gremu.net/blog/2010/pros-and-cons-about-python-3/#comment-46752409</link><description>&lt;p&gt;Hiho,&lt;/p&gt;

&lt;p&gt;you should check out the way you link on your blog.&lt;/p&gt;

&lt;p&gt;A tip for auto-correction for wordpress blogs: use "Broken link checker" &lt;a href="http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/" rel="nofollow"&gt;http://w-shadow.com/blog/2007/...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Best,&lt;br&gt;Alain&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/gremunet-latestcomments/~4/5MErvXa5Txc" height="1" width="1"/&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alain M. Lafon</dc:creator><pubDate>Sun, 17 Jan 2010 14:54:00 -0000</pubDate></item></channel></rss>

