<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Code Spatter - 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-1baba510" type="application/json"/><link>http://codespatter.disqus.com/</link><description></description><language>en</language><lastBuildDate>Thu, 02 Jul 2009 09:50:13 -0000</lastBuildDate><item><title>Re: A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title><link>http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/#comment-12030609</link><description>You can do this.&lt;br&gt;from somewhere import SoftDeleteManager&lt;br&gt;&lt;br&gt;class NewManager(SoftDeleteManager):&lt;br&gt;    '''new stuff'''&lt;br&gt;&lt;br&gt;and in the model&lt;br&gt;objects = NewManager()</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Thu, 02 Jul 2009 09:50:13 -0000</pubDate></item><item><title>Re: A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title><link>http://codespatter.com/2009/07/01/django-model-manager-soft-delete-how-to-customize-admin/#comment-12024597</link><description>Great writeup, thanks for that! I'll have question though.&lt;br&gt;Say I import SoftDeleteManager from an external file and use it with objects = SoftDeleteManager()&lt;br&gt;But now, I loose ability to define additional custom manager methods because objecst is already assigned, right? Is there a way to solve this other than inheriting from multiple manager classes?&lt;br&gt;&lt;br&gt;Metin</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Metin</dc:creator><pubDate>Thu, 02 Jul 2009 04:30:50 -0000</pubDate></item><item><title>Re: Static Files in Django on Production and Development</title><link>http://codespatter.com/2008/09/22/static-files-in-django-on-production-and-development/#comment-11517165</link><description>thanks, man!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ronald</dc:creator><pubDate>Sat, 20 Jun 2009 19:13:43 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-10380003</link><description>Yes! Finally I know where that annoying &lt;a href="http://example.com" rel="nofollow"&gt;example.com&lt;/a&gt; lives! Thank you!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladimir</dc:creator><pubDate>Tue, 02 Jun 2009 04:11:16 -0000</pubDate></item><item><title>Re: Django Settings Site Domain example.com</title><link>http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/#comment-9519033</link><description>Thanks very much! &lt;br&gt;I think you just saved me a lot of stuffing around with settings.py</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rich</dc:creator><pubDate>Mon, 18 May 2009 20:47:24 -0000</pubDate></item><item><title>Re: Quick Thumbnails in Django</title><link>http://codespatter.com/2008/09/13/quick-thumbnails-in-django/#comment-8895243</link><description>I updated this post. I was thinking the uploaded file was deleted after using it, but I just needed to reset the file. Django's InMemoryUploadedFile uses StringIO. Doing file.seek(0)&lt;br&gt; will reset the StringIO file to be ready to create another thumbnail.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Fri, 01 May 2009 10:54:36 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8825492</link><description>I just installed django-memcache-status to see the usage of memcache in the django admin interface. It looks pretty good and it's easy to install. Just download it and add it to installed apps. &lt;a href="http://github.com/bartTC/django-memcache-status/" rel="nofollow"&gt;http://github.com/bartTC/django-memcache-status/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Wed, 29 Apr 2009 16:44:24 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8819759</link><description>Yeah amazon's content distribution network is awesome and not a bad price. I'd like to hook that up sometime soon. I didn't know that subdomains would help with the browser limit. That's a good idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Wed, 29 Apr 2009 14:33:22 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8818793</link><description>Great post, even for us non-Djangoers.&lt;br&gt;&lt;br&gt;One other tip on the serving-static-files thing: move them off your server entirely and don't even use the processing power. Store them on S3. From there, you can use the CDN and map multiple subdomains to the content, so you can spread your requests across multiple subdomains. &lt;br&gt;&lt;br&gt;The reason for this is that web browsers will not open more than N connections to a given domain. Mapping them across multiple subdomains means that an image/static-heavy page will open even more connections and load concurrently.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim Rosenblatt</dc:creator><pubDate>Wed, 29 Apr 2009 14:05:05 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8689623</link><description>Thanks. I've never been to tutlist before. Sounds like a good idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Sat, 25 Apr 2009 15:42:17 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8687686</link><description>Added to &lt;a href="http://tutlist.com" rel="nofollow"&gt;http://tutlist.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Great tutorial.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JDStraughan</dc:creator><pubDate>Sat, 25 Apr 2009 13:37:21 -0000</pubDate></item><item><title>Re: How to Write Reusable Apps for Pinax and Django</title><link>http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/#comment-8667831</link><description>Ah good question. I left that in from some old code I guess. It was probably from before I made the model work by being applied to any other object. I removed it from the code. Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Fri, 24 Apr 2009 17:36:30 -0000</pubDate></item><item><title>Re: How to Write Reusable Apps for Pinax and Django</title><link>http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/#comment-8667362</link><description>Why do you have a tribes field your excluding on your form, but no tribes field in the model?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">paul</dc:creator><pubDate>Fri, 24 Apr 2009 17:17:38 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8648533</link><description>I haven't gotten into caching and increasing performance of my application code itself; I was starting with the server. Thanks for the suggestion. When I do get around to speeding up slow parts of my code, I'll keep Beaker in mind.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Fri, 24 Apr 2009 09:42:59 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8639931</link><description>Have you taken a look at Beaker? You can cache slow functionsthen, so that only parts of a request are cached as needed. It's easier to use with django now as well, I just blogged about it's use as a library on &lt;a href="http://groovie.org" rel="nofollow"&gt;groovie.org&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbangert</dc:creator><pubDate>Fri, 24 Apr 2009 02:36:36 -0000</pubDate></item><item><title>Re: How to Speed up Your Django Sites</title><link>http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/#comment-8618039</link><description>There are two more django apps that could help reduce http requests. I didn't find these until after posting this. &lt;a href="http://code.google.com/p/django-sprites/" rel="nofollow"&gt;http://code.google.com/p/django-sprites/&lt;/a&gt; and &lt;a href="http://github.com/rnk/django-media-bundler/tree/master" rel="nofollow"&gt;http://github.com/rnk/django-media-bundler/tree...&lt;/a&gt; will help create image sprites so that your css background images are all one file request. CSS sprites are explained in more detail here &lt;a href="http://alistapart.com/articles/sprites" rel="nofollow"&gt;http://alistapart.com/articles/sprites&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Thu, 23 Apr 2009 16:08:08 -0000</pubDate></item><item><title>Re: How To Use Triggers to Track Changes in MySQL</title><link>http://codespatter.com/2008/05/06/how-to-use-triggers-to-track-changes-in-mysql/#comment-8429004</link><description>I don't think there is anyway to do it in the database, but you can still put the logic in your application. If you are using django, there are signals that will help get that done. &lt;a href="http://docs.djangoproject.com/en/1.0/topics/signals/" rel="nofollow"&gt;http://docs.djangoproject.com/en/1.0/topics/sig...&lt;/a&gt; If you aren't then you will need to program it into your project in some other way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Mon, 20 Apr 2009 12:18:54 -0000</pubDate></item><item><title>Re: How To Use Triggers to Track Changes in MySQL</title><link>http://codespatter.com/2008/05/06/how-to-use-triggers-to-track-changes-in-mysql/#comment-8423999</link><description>Does any way work as trigger in mysql 4.1? I know that triggers is supported from mysql 5.0 &lt;br&gt;thanks for help</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sean</dc:creator><pubDate>Mon, 20 Apr 2009 12:03:18 -0000</pubDate></item><item><title>Re: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</title><link>http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/#comment-8261204</link><description>That is a good post. I've been wanting to use nginx since you mentioned it 5 months ago and now I have no excuse for not using it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Thu, 16 Apr 2009 10:52:36 -0000</pubDate></item><item><title>Re: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</title><link>http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/#comment-8260613</link><description>Hello Greg, I changed my setup and now I'm using Nginx. It works great. I have published how to configure &lt;a href="http://ventanazul.com/webzine/tutorials/django-deployment-guide-ubuntu" rel="nofollow"&gt;Django with Nginx, Apache and mod_wsgi&lt;/a&gt;.&lt;br&gt;&lt;br&gt;I hope you and your readers can give it a try and expect your comments.&lt;br&gt;&lt;br&gt;Cheers.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Bellido</dc:creator><pubDate>Thu, 16 Apr 2009 10:31:08 -0000</pubDate></item><item><title>Re: The People Make SXSW Awesome</title><link>http://codespatter.com/2009/03/25/the-people-make-sxsw-awesome/#comment-7557375</link><description>I didn't walk out on any and I probably should have a few times. I'll have a backup plan next time.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Fri, 27 Mar 2009 10:28:43 -0000</pubDate></item><item><title>Re: The People Make SXSW Awesome</title><link>http://codespatter.com/2009/03/25/the-people-make-sxsw-awesome/#comment-7556160</link><description>Yes, SXSW was awesome. The presentations weren't as good as I had expected. I walked out of the "workflow processes" one, because it was a few Adobe people pitching Dreamweaver to us. Lame. The panels were slightly better, and the meeting people was definitely the most awesome.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">timrosenblatt</dc:creator><pubDate>Fri, 27 Mar 2009 09:25:29 -0000</pubDate></item><item><title>Re: Static Files in Django on Production and Development</title><link>http://codespatter.com/2008/09/22/static-files-in-django-on-production-and-development/#comment-5034853</link><description>Great! That works perfectly for what I need.  Thanks for the post.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kyle Dickerson</dc:creator><pubDate>Sat, 10 Jan 2009 03:25:20 -0000</pubDate></item><item><title>Re: How to Break a MySQL Left Join</title><link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-4996299</link><description>I'm glad that this has been able to help other people out</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gallard</dc:creator><pubDate>Thu, 08 Jan 2009 16:43:32 -0000</pubDate></item><item><title>Re: How to Break a MySQL Left Join</title><link>http://codespatter.com/2008/02/19/how-to-break-a-mysql-left-join/#comment-4996129</link><description>You are awesome, stumbled upon you today after spending hours and hours stumbling about frustrated.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shane</dc:creator><pubDate>Thu, 08 Jan 2009 16:33:51 -0000</pubDate></item></channel></rss>