<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Opensourcetutor.com &#187; Django</title>
	<atom:link href="http://www.opensourcetutor.com/category/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcetutor.com</link>
	<description>On Linux, Web Development, Joomla and Magento commerce</description>
	<lastBuildDate>Wed, 28 Jul 2010 05:00:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Open Source Ecommerce alternatives to Zencart, OSCommerce and Virtuemart</title>
		<link>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/</link>
		<comments>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/#comments</comments>
		<pubDate>Wed, 28 May 2008 04:47:47 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[Internet Goodness]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[satchmo]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/</guid>
		<description><![CDATA[A couple of new open source Ecommerce products out and about that will hopefully see the end of the monstrosity called OSCommerce and it&#8217;s less ugly incarnations &#8211; 
Whilst they have served me well in the past and I may feel tempted to use Virtuemart for a customer who:
a) Will never ever need any customisations done to itb) Already has a Joomla installation and is very comfortable using Joomla
What&#8217;s the issue with Zencart, OSC or Virtuemart you may ask?
The issue is this. First OSCommerce is a mess. Every single module ...]]></description>
			<content:encoded><![CDATA[<p>A couple of new open source Ecommerce products out and about that will hopefully see the end of the monstrosity called OSCommerce and it&#8217;s less ugly incarnations &#8211; </p>
<p>Whilst they have served me well in the past and I <i>may </i>feel tempted to use Virtuemart for a customer who:</p>
<p>a) Will n<i>ever ever</i> need any customisations done to it<br />b) Already has a Joomla installation and is very comfortable using Joomla</p>
<p>What&#8217;s the issue with Zencart, OSC or Virtuemart you may ask?</p>
<p>The issue is this. First OSCommerce is a mess. Every single module you ever add to it is a hack, making upgrades a pain in the ass. Zencart, being closely related to OSC is not much better. It&#8217;s modularity is a bit better laid out and so you can actually create / install modules with very little hacking, if any BUT it&#8217;s template system still suffers from it&#8217;s OSC origins. It&#8217;s an effort to try and template for them..yes, it&#8217;s possible but does it really have to be that hard? Joomla&#8217;s concept is 1000 times better in regards to templating and Virtuemart excels in this area due to it&#8217;s Joomla foundations.</p>
<p>The big problem with them is when you need to make modifications to the core cart to implement a particular feature a customer wants. We have had situations where a small feature for the client required 144 changes in the files of Virtuemart. As soon as a XSS or other security issue comes to light, we have two options</p>
<ol>
<li>Let it be, cross fingers and hope nothing happens (this really is not an option)</li>
<li>Inform customer, explain risks and give them compelling reasons to update (at their cost)</li>
<li>Our current solution is when we sign contracts with customers, we include a compulsory security updates fee, which means we update their site when new security releases come out. This has worked out best so far but still requires us to explain why we are giving a solution that isn&#8217;t inherently secure to begin with. Microsoft has made this easier to explain (daily updates anyone?) and for the most part, we can kill most XSS / SQL Injection attacks using Apache modsec rules but we really want to get beyond NEEDING to upgrade and therefore NEEDING to patch our mods into new releases of Virtuemart etc.</li>
</ol>
<p>So, without further ado, there looks to be two better alternatives that have come to the rescue recently that look very, very promising though we haven&#8217;t done any work with them yet, so I will report on that later.</p>
<p>In PHP land, we have <a target="_blank" href="http://www.magentocommerce.com/">Magento</a>. A very sexy, professional looking Open Source Ecommerce application that&#8217;s built upon the Zend MVC framework and claims to be able to develop extensions without touching core code. This, hopefully will fix our templating, modification and upgrade woes in a PHP solution. It has SEF URL&#8217;s built-in, google analytics built-in and a mini-CMS of sorts.</p>
<p>In Python land, we have <a target="_blank" href="http://www.satchmoproject.com/">Satchmo</a> an open source ecommerce application built on top of the Django framework, with a reasonable feature set.</p>
<p>As part of my toolbox, my thinking at this point is if we have a customer that needs a standard shop with little to no development work, Magento will be our tool. If the customer has very unique needs, integration with other systems and customisations, we will work with Django.</p>
<p>This is because PHP deployment is so easy, that our only need should be to produce templates in Magento. If development work is needed, deployment and templating become a trivial matter in Satchmo in comparison to the ability to develop in Django &amp; Python.</p>
<p>Would love to hear other&#8217;s experiences with any of the above&#8230; and of course any horror stories (or otherwise with OSC based development)</p>
<p></p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RipplePay / Ripple Project &#8211; Peer to Peer Finance in Django and homelessness</title>
		<link>http://www.opensourcetutor.com/2007/11/04/ripplepay-ripple-project-peer-to-peer-finance-in-django-and-homelessness/</link>
		<comments>http://www.opensourcetutor.com/2007/11/04/ripplepay-ripple-project-peer-to-peer-finance-in-django-and-homelessness/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 12:50:32 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Political]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/11/04/ripplepay-ripple-project-peer-to-peer-finance-in-django-and-homelessness/</guid>
		<description><![CDATA[
Yesterday, I was searching around for a Critique of Neale Donald Walsch after watching the DVD &#8220;Conversations with God&#8221; &#8211; I have already read all three books of his Conversations with God series and whilst it didn&#8217;t present to me any new and revealing ideas about life, god and living in general, it did act as a reminder of the ones I already have. I have known about Book 1 for almost as long as it&#8217;s been out but never picked it up as I considered it would be too ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.scriptlance.com/?ref=salubrium"><img SRC="http://www.scriptlance.com//banners/banner_9_468x60.gif" WIDTH="468" HEIGHT="60" BORDER="0" ALT="Find freelance programmers at ScriptLance.com - Search worldwide"/></a><br />
Yesterday, I was searching around for a Critique of Neale Donald Walsch after watching the DVD &#8220;Conversations with God&#8221; &#8211; I have already read all three books of his Conversations with God series and whilst it didn&#8217;t present to me any new and revealing ideas about life, god and living in general, it did act as a reminder of the ones I already have. I have known about Book 1 for almost as long as it&#8217;s been out but never picked it up as I considered it would be too light reading for my tastes at the time. I was into &#8216;hardcore&#8217; spiritual stuff but these days, I don&#8217;t have as much time to sit and read, so I am choosing books &lt;400 pages in length for the time bein as a general rule of thumb. I will say that I found book three to be most interesting to me as it presented some ideas on economic and financial systems that could be used as micro and macro economical models. It also drove home to me for some reason what it can be like when you live on &#8216;the outside&#8217;, which makes me always think of Charles Bukowski&#8217;s semi-biographical novel &#8220;Postoffice&#8221; when he leaves the Postal Service and suddenly he&#8217;s on &#8216;the outside&#8217;.</p>
<p>So <a href="http://spoirier.lautre.net/walsch.html">this critique</a> led me to the same authors notes on <a href="http://spoirier.lautre.net/trick.html">infoliberalism</a> which led me to his notes on a <a href="http://spoirier.lautre.net/money.htm">monetary system</a> which led me to the link to <a href="https://ripplepay.com/">Ripplepay</a> &amp; <a href="http://ripple.sourceforge.net/">Ripple Project</a>.</p>
<p>So back to being &#8216;on the outside&#8217; &#8211; The issue of homeless people has really been sticking in my mind lately. Once you are on the streets, and you have no phone, no address, no clean clothes etc and worst of all, once you have it in your mind &#8220;this is what I am&#8221; and you begin to look invisible to the thousands of people who walk past you each day without a thought (or maybe we do??), how do you get out of it? How do you change your mind about who and what you are, first of all because that is the biggest challenge of them all.</p>
<p>I had an experience on Friday night where I did &#8216;a bit more&#8217; than usual for a homeless guy and I saw the look in the guys eyes and he reached out to shake my hand. He wasn&#8217;t an alcoholic, a drug user or visibly mentally ill. It was raining in Sydney, it was about 10pm and he had no shoes and was probably mid to late 30&#8242;s. All I have thought since then is that I didn&#8217;t do enough, that I could have done more. I have told myself, it&#8217;s a start. I&#8217;m sure Mother Theresa even questioned her own efforts at times.</p>
<p>If this kind of thing interests you, be sure to check out these links:</p>
<p><a href="http://www.springwise.com/financial_services/bank_run_by_street_kids_in_new/">Street Kids in India run their own Bank</a><br />
<a href="http://home.golden.net/%7Emsavage/ootc/54ways/overview.html">54 Ways you can help the homeless</a><br />
<a href="http://www.homeless.org.au/">Homeless.org.au</a> and <a href="http://forums.homeless.org.au/">forums.homeless.org.au</a> &#8211; A Sydney based home for the homeless run by a 31yo guy from Brisbane, which seems to have been originally self-funded. Some great stuff there.<br />
<a href="http://thehomelessguy.wordpress.com/">The Homeless Guy Blog</a><br />
<a href="http://www.grandcentral.com/about/projectcare/">GrandCentral</a> &#8211; Project Care program &#8211; A phone number for everyone &#8211; I can think of a mini way of doing this in Australia using <a href="http://www.oztell.com">Oztell&#8217;s WebPABX</a> or using <a href="http://www.asterisk.org/">Asterisk</a> and using extension numbers with mailboxes where people can give out their phone number and their extension. They can collect their voicemail via a phone or have the messages emailed to them. You would just need one DID.</p>
<p>Obviously, a man living on the street in Australia has an experience far different to a child living on the street of South America, India or Africa. Here&#8217;s an NGO organisation in Peru started by a husband and wife in 2001 called <a href="http://bruceperu.org">BrucePeru</a> &#8211; youtube video below. You can volunteer there starting at $395 US per month, including all your meals and accommodation. Prices decline depending on your length of stay.</p>
<p><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/vRXExEoC4hw&amp;rel=1"></param><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/vRXExEoC4hw&amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></param></object></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/django" rel="tag">django</a>, <a class="performancingtags" href="http://technorati.com/tag/python" rel="tag">python</a>, <a class="performancingtags" href="http://technorati.com/tag/ripplepay" rel="tag">ripplepay</a>, <a class="performancingtags" href="http://technorati.com/tag/ripple project" rel="tag">ripple project</a>, <a class="performancingtags" href="http://technorati.com/tag/microfinance" rel="tag">microfinance</a>, <a class="performancingtags" href="http://technorati.com/tag/monetary system" rel="tag">monetary system</a>, <a class="performancingtags" href="http://technorati.com/tag/lets" rel="tag">lets</a>, <a class="performancingtags" href="http://technorati.com/tag/homelessness" rel="tag">homelessness</a></p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/11/04/ripplepay-ripple-project-peer-to-peer-finance-in-django-and-homelessness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON &amp; Serialization in Django &#8211; Links for my reference</title>
		<link>http://www.opensourcetutor.com/2007/10/16/json-serialization-in-django-links-for-my-reference/</link>
		<comments>http://www.opensourcetutor.com/2007/10/16/json-serialization-in-django-links-for-my-reference/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 05:18:57 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/10/16/json-serialization-in-django-links-for-my-reference/</guid>
		<description><![CDATA[Generic Serialization using JSON &#8211; here &#8217;tis
Django + Ajax Presentation (pdf) &#8211; page 35 onwards &#8211; here &#8217;tis
Thread on ExtJS forum specifically Django + JSON + ExtJS &#8211; here &#8217;tis
Aah, also five part ipython series on showmedo.com
Technorati Tags: django, extjs, json, ajax
Powered by ScribeFire.
No Tags]]></description>
			<content:encoded><![CDATA[<p>Generic Serialization using JSON &#8211; <a href="http://blog.michaeltrier.com/tags/json">here &#8217;tis</a><br />
Django + Ajax Presentation (pdf) &#8211; page 35 onwards &#8211; <a href="http://www.red-bean.com/~adrian/presentations/2006-harvard-acm-django.pdf">here &#8217;tis</a><br />
Thread on ExtJS forum specifically Django + JSON + ExtJS &#8211; <a href="http://extjs.com/forum/showthread.php?t=3059">here &#8217;tis</a></p>
<p>Aah, also five part <a href="http://showmedo.com/videos/IPython">ipython series</a> on <a href="http://www.showmedo.com">showmedo.com</a></p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/django" rel="tag">django</a>, <a class="performancingtags" href="http://technorati.com/tag/extjs" rel="tag">extjs</a>, <a class="performancingtags" href="http://technorati.com/tag/json" rel="tag">json</a>, <a class="performancingtags" href="http://technorati.com/tag/ajax" rel="tag">ajax</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/10/16/json-serialization-in-django-links-for-my-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seamless on/offline: Design winForms and deploy as ajax webapp on mono</title>
		<link>http://www.opensourcetutor.com/2007/10/09/seamless-onoffline-design-winforms-and-deploy-as-ajax-webapp-on-mono/</link>
		<comments>http://www.opensourcetutor.com/2007/10/09/seamless-onoffline-design-winforms-and-deploy-as-ajax-webapp-on-mono/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 13:03:21 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Internet Goodness]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/10/09/seamless-onoffline-design-winforms-and-deploy-as-ajax-webapp-on-mono/</guid>
		<description><![CDATA[
Visual WebGui looks very interesting from a perspective that it allows you to develop a winforms application as you normally would and deploy it as a webapp (also).
As per some previous posts, I like to be able to jump seamlessly between platforms. I don&#8217;t want to be tied down to anything if I can help it. This is why I wouldn&#8217;t buy an Ipod and like Mark Pilgrim, I don&#8217;t get the iphone phenomena. I want to use my application online, offline seamlessly. I want to have the same experience, ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.scriptlance.com/?ref=salubrium"><img SRC="http://www.scriptlance.com//banners/banner_9_468x60.gif" WIDTH="468" HEIGHT="60" BORDER="0" ALT="Find freelance programmers at ScriptLance.com - Search worldwide"/></a><br />
<a href="http://www.visualwebgui.com/">Visual WebGui</a> looks very interesting from a perspective that it allows you to develop a winforms application as you normally would and deploy it as a webapp (also).</p>
<p>As per some previous posts, I like to be able to jump seamlessly between platforms. I don&#8217;t want to be tied down to anything if I can help it. This is why I wouldn&#8217;t buy an Ipod and <a href="http://diveintomark.org/archives/2007/10/04/if-wishes-were-iphones">like Mark Pilgrim</a>, I don&#8217;t get the iphone phenomena. I want to use my application online, offline seamlessly. I want to have the same experience, no matter where I am, what I am doing etc. Software like NoMachine&#8217;s NX server give me this ability. I have a ultra-portable laptop I bought for $280 on ebay, I have <a href="http://www.three.com.au">Three</a> wireless, which means I can be a passenger in a car / train / ferry / bus nearly anywhere in metro-Sydney and still have access to my Ubuntu desktop.. that&#8217;s frikkin&#8217; cool.</p>
<p>But what about when I don&#8217;t have internet access? Well, I previously used <a href="http://www.ifolder.com">Ifolder</a> to keep all my files in sync (which uses mono btw) but ifolder has to be the worst managed open source project I have ever used. Trying to keep a client / server combination that worked together proved to be a feat for me too many times and finally I went in search of something else. I then switched over to <a href="http://www.mindquarry.com/">Mindquarry </a>(I could have just used svn with some python scripts that watched folders and syncs when it sees a change, I guess) but Mindquarry actually offers a few more features than svn or Ifolder alone ie: Tasks, timeline, wiki and teams. </p>
<p>So, now we have our files synchronised and I use imap, so we have mail synchronised and I have used <a href="http://sitebar.org/">sitebar</a> for bookmarks for a very long time but there&#8217;s something more. What about my feeds in opera? all my vim settings? my bash_profile alias? This is where I think <a href="http://www.conduit-project.org/">Conduit</a> will be able to help me out eventually (one of the reasons I looked forward to moving to Gnome)</p>
<p><object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/bMJG-zNl5PA"></param><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/bMJG-zNl5PA" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></param></object></p>
<p>Now, I am really raising two separate issues here. On one hand, I am talking about syncronising two separate computers and on the other, I am talking about a seamless experience between online and offline applications. I think the first is mostly being taken care of. The second issue has some solutions becoming available also. This is where I see stuff like <a href="http://gears.google.com/">Google Gears</a>, <a href="http://labs.adobe.com/technologies/air/">Adobe Air</a> and <a href="http://www.db4o.com/">db4o</a> especially their db4o <a href="http://www.db4o.com/about/productinformation/features/drs.aspx">replication system</a>proving to show their usefulness.</p>
<p>Sidenote: In the Enterprise Data Centre, <a href="http://www.lefthandnetworks.com/">Lefthandnetworks</a> has some very similar concepts happening for data virtualisation for online / offline drs solutions as db4o has for persistance &#8211; and more importanly for me, their new VMware product looks very promising for high availability + drs soutions using vmware.</p>
<p>So, now I bring up my original point in my posting. Let&#8217;s say we develop a desktop applications using db4o (mono bindings available) and I think we could even do that using the .Net python-like language called Boo &#8211; the developer of said language happens to also be a developer of db4o. Now, we take said winForms application and deploy it to the web using <a href="http://www.visualwebgui.com/">Visual WebGui</a>. Now, I know the web purists might find this all very freakish as I haven&#8217;t done a W3C Validation on it, but I am half-certain something will be wrong and it&#8217;s not the sort of thing you are going to be delivering to blind people. I am talking about applications with a specific user base, something like a Mobile Lender, Mobile Salesperson, Microfinancing in remote areas etc. </p>
<p>In my post <a href="http://www.opensourcetutor.com/2007/05/02/a-case-for-learning-python/">A Case for Learning Python</a> I put forth my reasoning for deciding to spend all energy learning a language in Python &#8211; I don&#8217;t think any other language can offer the same access to so much for so little (time investment) as Python. </p>
<p>I will add something to the original list: <a href="http://windmill.osafoundation.org/">Windmill</a> is a web testing framework intended for complete automation of user interface testing, with strong test debugging capabilities and of course, it&#8217;s written in Python and uses CherryPy.</p>
<p>Also, in the same vein are <a href="http://webunit.sourceforge.net/">WebUnit</a> and <a href="http://twill.idyll.org/">Twill</a> (both written in Python)</p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/python" rel="tag">python</a>, <a class="performancingtags" href="http://technorati.com/tag/ajax" rel="tag">ajax</a>, <a class="performancingtags" href="http://technorati.com/tag/winforms" rel="tag">winforms</a>, <a class="performancingtags" href="http://technorati.com/tag/mono" rel="tag">mono</a>, <a class="performancingtags" href="http://technorati.com/tag/django" rel="tag">django</a>, <a class="performancingtags" href="http://technorati.com/tag/visual%20webgui" rel="tag">visual webgui</a>, <a class="performancingtags" href="http://technorati.com/tag/mindquarry" rel="tag">mindquarry</a>, <a class="performancingtags" href="http://technorati.com/tag/gnome" rel="tag">gnome</a>, <a class="performancingtags" href="http://technorati.com/tag/conduit" rel="tag">conduit</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/10/09/seamless-onoffline-design-winforms-and-deploy-as-ajax-webapp-on-mono/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Serving Dynamic Images from Django error</title>
		<link>http://www.opensourcetutor.com/2007/10/02/serving-dynamic-images-from-django-error/</link>
		<comments>http://www.opensourcetutor.com/2007/10/02/serving-dynamic-images-from-django-error/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 12:39:56 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/10/02/serving-dynamic-images-from-django-error/</guid>
		<description><![CDATA[**Edit: I did blatanly miss something, which was pointed out to me on django irc#, which is that you can&#8217;t call binary data into a template. You create a view and then call the view from your template. I will leave the below for prosterity and in case it trips someone else up. It was my blonde moment.
Forgive me if I am blatantly missinged something (which is very likelyobviously), but since the unicode integration into django, I can&#8217;t seem to generate non-text images from a view, into a template ie: ...]]></description>
			<content:encoded><![CDATA[<p>**Edit: I did blatanly miss something, which was pointed out to me on django irc#, which is that you can&#8217;t call binary data into a template. You create a view and then call the view from your template. I will leave the below for prosterity and in case it trips someone else up. It was my blonde moment.</p>
<p><strike>Forgive me if</strike> I <strike>am</strike> blatantly miss<strike>ing</strike>ed something (<strike>which is very likely</strike>obviously), but since the unicode integration into django, I can&#8217;t seem to generate non-text images from a view, into a template ie: then django books says:</p>
<blockquote><p>from django.http import HttpResponse</p>
<p>def my_image(request):<br />    image_data = open(&#8220;/home/moneyman/public_html/media/img/main_bg.jpg&#8221;, &#8220;rb&#8221;).read()<br />    return HttpResponse(image_data, mimetype=&#8221;image/png&#8221;)</p></blockquote>
<p>Which works fine, but when you try and render it to a template ie:</p>
<blockquote><p>def new(request):<br />    image_data = open(&#8220;/home/moneyman/public_html/media/img/main_bg.jpg&#8221;, &#8220;rb&#8221;).read()<br />    return render_to_response(&#8216;loans/loan_reports.html&#8217;, {image_data:&#8217;image_data&#8217;}, mimetype=&#8221;image/jpeg&#8221;)</p></blockquote>
<p>You end up with something like this:<br />
<blockquote>UnicodeDecodeError at /somewhere/<br />&#8216;ascii&#8217; codec can&#8217;t decode byte 0xff in position 0: ordinal not in range(128)Request Method:	GET<br />Request URL:	http://www.somewhere.com/somewhere/<br />Exception Type:	UnicodeDecodeError<br />Exception Value:	&#8216;ascii&#8217; codec can&#8217;t decode byte 0xff in position 0: ordinal not in range(128)<br />Exception Location:	/home/moneyman/lib/python2.4/site-packages/django/template/context.py in __getitem__, line 38<br />Python Executable:	/home/moneyman/bin/python<br />Python Version:	2.4.3</p>
<p>Traceback (most recent call last):<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/__init__.py&#8221; in render_node<br />  810. result = node.render(context)<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/__init__.py&#8221; in render<br />  846. return self.filter_expression.resolve(context)<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/__init__.py&#8221; in resolve<br />  577. obj = self.var.resolve(context)<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/__init__.py&#8221; in resolve<br />  704. return self._resolve_lookup(context)<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/__init__.py&#8221; in _resolve_lookup<br />  727. current = current[bit]<br />File &#8220;/home/moneyman/lib/python2.4/site-packages/django/template/context.py&#8221; in __getitem__<br />  38. if key in d:</p>
<p>  UnicodeDecodeError at /somewhere/<br />  &#8216;ascii&#8217; codec can&#8217;t decode byte 0xff in position 0: ordinal not in range(128)</p>
</blockquote>
<p>I don&#8217;t know if it&#8217;s me or a bug. I haven&#8217;t been able to get any decent feedback from #django IRC channel as yet</p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/django" rel="tag">django</a>, <a class="performancingtags" href="http://technorati.com/tag/charts" rel="tag">charts</a>, <a class="performancingtags" href="http://technorati.com/tag/python" rel="tag">python</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/10/02/serving-dynamic-images-from-django-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Zen of Django</title>
		<link>http://www.opensourcetutor.com/2007/09/27/the-zen-of-django/</link>
		<comments>http://www.opensourcetutor.com/2007/09/27/the-zen-of-django/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 12:49:36 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/09/27/the-zen-of-django/</guid>
		<description><![CDATA[



Not much time to write but all I can say about Django is:
I came for the models, I stayed for the templates
While it&#8217;s not all been smooth sailing for me mostly due to my lack of python experience, the guys on IRC especially &#8220;Magus&#8221; have been tremendous. Is he paid to help people??? Someone should give him a fulltime position on the IRC channel.
The other part that tripped me up was newforms library  as it&#8217;s still under development and isn&#8217;t fully documented as yet. This article at Big Nerd ...]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9469051832075629";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
//2007-05-22: opensourcetutor.com
google_ad_channel = "3549963802";
google_color_border = "FFF";
google_color_bg = "FFF";
google_color_link = "333";
google_color_text = "CCCCCC";
google_color_url = "999999";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Not much time to write but all I can say about Django is:</p>
<blockquote><p>I came for the models, I stayed for the templates</p></blockquote>
<p>While it&#8217;s not all been smooth sailing for me mostly due to my lack of python experience, the guys on IRC especially &#8220;<a href="http://collingrady.com/">Magus</a>&#8221; have been tremendous. Is he paid to help people??? Someone should give him a fulltime position on the IRC channel.</p>
<p>The other part that tripped me up was newforms library  as it&#8217;s still under development and isn&#8217;t fully documented as yet. <a href="http://weblog.bignerdranch.com/?p=31">This article</a> at Big Nerd Ranch was a big help as was Colin Grady, once more. I often found myself overcomplicating issues that were much simpler than I was imagining. </p>
<p>Anyway &#8211; the more I use Django, the more I learn the true depths of it&#8217;s greatness even though I still feel as though I am skimming the surface. I have met Malcolm Treddinick face to face, a fellow Australian and mad hacker. His commits on the Django project have been somewhat impressive. I can&#8217;t wait to be able to add some value back into the community once I get over a few more stumbling blocks.</p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/09/27/the-zen-of-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django screencasts on Showmedo</title>
		<link>http://www.opensourcetutor.com/2007/09/21/django-screencasts-on-showmedo/</link>
		<comments>http://www.opensourcetutor.com/2007/09/21/django-screencasts-on-showmedo/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 13:13:12 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2007/09/21/django-screencasts-on-showmedo/</guid>
		<description><![CDATA[Have been busy working on a project in Django, so haven&#8217;t able to write as much as I like but:
Siddhi has some nice Django screencasts over at Showmedo.com
I was also reading the Trac / Babel website which ended up hooking me up to a great article from a guy who was thinking about succesful open source projects and came to the conclusion to how powerful api&#8217;s are in both open source and proprietary applications. The article pointed out how much having a good, documented api lowers the entry barrier for ...]]></description>
			<content:encoded><![CDATA[<p>Have been busy working on a project in Django, so haven&#8217;t able to write as much as I like but:</p>
<p><a href="http://siddhi.blogspot.com/">Siddhi</a> has some nice <a href="http://blog.showmedo.com/2007/04/14/new-showmedo-django-tutorial-part-1-setup/">Django screencasts</a> over at Showmedo.com</p>
<p>I was also reading the <a href="http://trac.edgewall.org/">Trac / Babel</a> website which ended up hooking me up to a great article from a guy who was thinking about succesful open source projects and came to the conclusion to how powerful api&#8217;s are in both open source and proprietary applications. The article pointed out how much having a good, documented api lowers the entry barrier for contributors, allowing a project to gain a community and momentum faster. I see this as part of the success of the Joomla project. People were able to go away and create modules, components and bots without having to submit or beg for features on the main project&#8217;s repo. I wish I could find the article now though!</p>
<p>Anyway, that led me to another worthy mention: <a href="http://code.google.com/p/django-rest-interface/">Django Restful Interfaces</a> project.</p>
<p>Beyond the django / python world, if you are into learning languages, I stumbled across <a href="http://www.mangolanguages.com">Mango Languages</a> today, which I am going to add to my use of <a href="http://granule.sourceforge.net">Granule Flashcards</a> for Spanish.</p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/django" rel="tag">django</a>, <a class="performancingtags" href="http://technorati.com/tag/trac" rel="tag">trac</a>, <a class="performancingtags" href="http://technorati.com/tag/open source" rel="tag">open source</a>, <a class="performancingtags" href="http://technorati.com/tag/rest" rel="tag">rest</a>, <a class="performancingtags" href="http://technorati.com/tag/showmedo" rel="tag">showmedo</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
No Tags]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2007/09/21/django-screencasts-on-showmedo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
