<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: what can you do with django?</title>
	<atom:link href="http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/</link>
	<description>A blog about nothing</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:14:03 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Simon Willison</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41616</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Mon, 03 Dec 2007 00:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41616</guid>
		<description>There&#039;s a Django middleware component that can validate your HTML and tell you if you have any errors: http://lukeplant.me.uk/resources/djangovalidator/

Both CSS and JavaScript are deliberately not covered by Django; it&#039;s a server-side framework and those are client-side technologies, so Django expects that you are smart enough to be able to pick your own JavaScript library and CSS tools. You might want to take a look at Blueprint ( http://code.google.com/p/blueprintcss/ ) which actually has its roots in the same team as Django (the team at the  Lawrence Journal-World newspaper).

Keeping models in sync with database changes is a really hard problem. The best solution at the moment is probably Django Evolution: http://code.google.com/p/django-evolution/

Django does extremely well in performance comparisons with Rails, for a couple of reasons: firstly, Python is a great deal faster than Ruby due to a better (in terms of speed) implementation of the language interpreter. Secondly, many of the design decisions in Django were strongly influenced by performance considerations - things like the way the template engine works and many aspects of the ORM.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a Django middleware component that can validate your HTML and tell you if you have any errors: <a href="http://lukeplant.me.uk/resources/djangovalidator/" rel="nofollow">http://lukeplant.me.uk/resources/djangovalidator/</a></p>
<p>Both CSS and JavaScript are deliberately not covered by Django; it&#8217;s a server-side framework and those are client-side technologies, so Django expects that you are smart enough to be able to pick your own JavaScript library and CSS tools. You might want to take a look at Blueprint ( <a href="http://code.google.com/p/blueprintcss/" rel="nofollow">http://code.google.com/p/blueprintcss/</a> ) which actually has its roots in the same team as Django (the team at the  Lawrence Journal-World newspaper).</p>
<p>Keeping models in sync with database changes is a really hard problem. The best solution at the moment is probably Django Evolution: <a href="http://code.google.com/p/django-evolution/" rel="nofollow">http://code.google.com/p/django-evolution/</a></p>
<p>Django does extremely well in performance comparisons with Rails, for a couple of reasons: firstly, Python is a great deal faster than Ruby due to a better (in terms of speed) implementation of the language interpreter. Secondly, many of the design decisions in Django were strongly influenced by performance considerations &#8211; things like the way the template engine works and many aspects of the ORM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: numerodix</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41614</link>
		<dc:creator>numerodix</dc:creator>
		<pubDate>Sun, 02 Dec 2007 23:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41614</guid>
		<description>Good points. What I meant about css is that html/css is basically a minefield of bugs, it&#039;s hard to do the simplest thing right and get the same result in all browsers. And since django is about empowering web developers, and it&#039;s generally so nice... well it would be cool if they had some answer to that as well :)</description>
		<content:encoded><![CDATA[<p>Good points. What I meant about css is that html/css is basically a minefield of bugs, it&#8217;s hard to do the simplest thing right and get the same result in all browsers. And since django is about empowering web developers, and it&#8217;s generally so nice&#8230; well it would be cool if they had some answer to that as well <img src='http://www.matusiak.eu/numerodix/blog/wp-includes/images/smilies/smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tante</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41612</link>
		<dc:creator>tante</dc:creator>
		<pubDate>Sun, 02 Dec 2007 22:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/12/02/what-can-you-do-with-django/#comment-41612</guid>
		<description>@1: Templates are &quot;rendered&quot; with a given &quot;context&quot; (the stuff you want to insert into them). If you wanted to make sure that the rendered code it valid, you can just pipe the rendered data through something like &quot;tidy&quot;. There are shortcuts in django like &quot;render_to_response(&quot;template&quot;,context)&quot; but those just simplify default tasks. No problem at all to write something similar that does use tidy to create valid code (or does at least check and sends te administrator an email of some function returns invalid code)

@2: CSS is a designer&#039;s job, what does it have to do with the application writer? The guys writing the model and the view shouldn&#039;t need to know about CSS, just the guy writing the actual template. And I don&#039;t see where django could automate things there. You can of course use any CSS/JS framework you want with django without any problem, but the MVC thingy is exactly what decouples the templates (where the CSS matters) from the rest.

@3: There&#039;s some work done on a few apps that offer &quot;migrations&quot; between changed django models so that will end up in mainline django at some point. Right now it&#039;s a design decision because automatic migrations are a pain in the ass and might either destroy data or create crappy SQL structures. Since they couldn&#039;t do it right (lack of time) they left it out. That is actually what I love about django: What&#039;s in there feels like it has been done &lt;em&gt;right&lt;/em&gt;, not just hacked together into some weird &quot;plugin&quot;.

From my experience django with memcache and postgresql scales really good. I think it might scale somewhat worse than PHP but that is a price I&#039;m willing to pay for the structure that django enforces and the great workflow.</description>
		<content:encoded><![CDATA[<p>@1: Templates are &#8220;rendered&#8221; with a given &#8220;context&#8221; (the stuff you want to insert into them). If you wanted to make sure that the rendered code it valid, you can just pipe the rendered data through something like &#8220;tidy&#8221;. There are shortcuts in django like &#8220;render_to_response(&#8221;template&#8221;,context)&#8221; but those just simplify default tasks. No problem at all to write something similar that does use tidy to create valid code (or does at least check and sends te administrator an email of some function returns invalid code)</p>
<p>@2: CSS is a designer&#8217;s job, what does it have to do with the application writer? The guys writing the model and the view shouldn&#8217;t need to know about CSS, just the guy writing the actual template. And I don&#8217;t see where django could automate things there. You can of course use any CSS/JS framework you want with django without any problem, but the MVC thingy is exactly what decouples the templates (where the CSS matters) from the rest.</p>
<p>@3: There&#8217;s some work done on a few apps that offer &#8220;migrations&#8221; between changed django models so that will end up in mainline django at some point. Right now it&#8217;s a design decision because automatic migrations are a pain in the ass and might either destroy data or create crappy SQL structures. Since they couldn&#8217;t do it right (lack of time) they left it out. That is actually what I love about django: What&#8217;s in there feels like it has been done <em>right</em>, not just hacked together into some weird &#8220;plugin&#8221;.</p>
<p>From my experience django with memcache and postgresql scales really good. I think it might scale somewhat worse than PHP but that is a price I&#8217;m willing to pay for the structure that django enforces and the great workflow.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

