<?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>Mehmet Ali Ertürk &#187; Django</title>
	<atom:link href="http://mehmetalierturk.com/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://mehmetalierturk.com</link>
	<description>Innovation is the ability to see change as an opportunity, not a threat</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:28:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Book Review: Django 1.0 Template Development</title>
		<link>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=book-review-django-1-0-template-development</link>
		<comments>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:14:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=857</guid>
		<description><![CDATA[I have finished reading free copy of Django 1.0 Template Development to review which is written by Scott Newman and published by Packt Publishing. I have already posted a blog entry about the free chapter of the book. Django is &#8230; <a href="http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have finished reading free copy of <a href="http://www.packtpub.com/django-1.0-template-design-practical-guide/book">Django 1.0 Template Development</a> to review which is written by Scott Newman and published by <a href="http://www.packtpub.com/">Packt Publishing</a>. I have already posted a <a href="http://www.mehmetalierturk.com/2009/07/30/about-django-template-development/">blog entry</a> about the <a href="http://www.packtpub.com/files/django-1-0-template-development-sample-chapter-6-serving-multiple-templates.pdf">free chapter of the book</a>.</p>
<p>Django is a powerful Python web development framework which has challenging built in features like templating system, admin pages… etc.  I have been developing web based applications for years and worked on variety of languages and platforms however Django’s clean and clear architecture is unique. The book focuses on the template development with Django and the content;</p>
<ul>
<li>Chapter 1: An Introduction to the Django Template System</li>
<li>Chapter 2: Views, URLs, and Generic Views</li>
<li>Chapter 3: Template Context</li>
<li>Chapter 4: Using the Built-In Tags and Filters</li>
<li>Chapter 5: Loading and Inheriting Templates</li>
<li>Chapter 6: Serving Multiple Templates</li>
<li>Chapter 7: Custom Tags and Filters</li>
<li>Chapter 8: Pagination</li>
<li>Chapter 9: Customizing the Admin Look and Feel</li>
<li>Chapter 10: Caching Your Pages</li>
<li>Chapter 11: Internationalization</li>
</ul>
<p>Detailed information about book <a href="http://www.packtpub.com/article/django-1.0-template-design-practical-guide-table-of-contents">content is available</a>.</p>
<p>Django 1.0 Template Development is designed for both beginners and advanced developers and template authors with variety of examples and detailed topics of template development.</p>
<p>The book starts with introduction to template development and an overview of Django template system. Also, following Chapter 4 discusses built-in tags, filters and Chapter 7 focuses on custom tags and filters which are highly used important issues in Django application development.</p>
<p>I would recommend Django 1.0 Template Development for developers who want better understanding and efficient use of template systems in Django.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=a1a28929-332c-44c2-83a5-cfa6f151d3bf"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/08/14/book-review-django-1-0-template-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>About Django Template Development</title>
		<link>http://mehmetalierturk.com/2009/07/30/about-django-template-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=about-django-template-development</link>
		<comments>http://mehmetalierturk.com/2009/07/30/about-django-template-development/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 13:56:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=849</guid>
		<description><![CDATA[As you know I’m a python and django fan. I try to use python and django in every project including academic studies. A few days ago, I had the book &#8220;Django 1.0 Template Development&#8221; and still exploring it. Thanks to &#8230; <a href="http://mehmetalierturk.com/2009/07/30/about-django-template-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you know I’m a python and django fan. I try to use python and django in every project including academic studies. A few days ago, I had the book &#8220;<a href="http://www.packtpub.com/django-1.0-template-design-practical-guide/book">Django 1.0 Template Development</a>&#8221; and still exploring it. Thanks to <a href="http://www.packtpub.com">Packt Publishing</a>.</p>
<p>As long as I finalize my current study, I’m going to start writing about django template development and a review about the book. There is a sample chapter &#8220;<a href="http://www.packtpub.com/files/django-1-0-template-development-sample-chapter-6-serving-multiple-templates.pdf">Serving Multiple Templates</a>&#8221; which you can download and read for free.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=8d0e1bfa-8b7a-4814-a4e3-c0ffaefd0cc6"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/07/30/about-django-template-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Real Django Application On A Shared Hosting</title>
		<link>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-real-django-application-on-shared-hosting</link>
		<comments>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 20:27:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=596</guid>
		<description><![CDATA[I got working a simple django application on a shared hosting before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a &#8230; <a href="http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got working a <a href="http://www.mehmetalierturk.com/2009/01/11/django-on-shared-hostings/">simple django application on a shared hosting</a> before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a real time test. After struggling with .haccess mod_rewrite issues<sup>1</sup> (mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use &#8216;RewriteOptions MaxRedirects&#8217; to increase the limit if neccessary) my application is deployed and first http request is called. No, as you guess it didn&#8217;t work. My hosting provider uses an old version of mysql driver for python which is MySQLdb-1.2.0 but django 1.0 requires  MySQLdb-1.2.1p2 or newer. So, planning to email and ask them if it is possible to upgrade driver if not I&#8217;m going to use my friends home servers to host it.</p>
<p><sup>1</sup> To fix this issue add your domain name to rewrite condition like<br />
<code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} yoursite.com<br />
RewriteCond %{REQUEST_URI} !yoursite.com<br />
RewriteRule ^(.*)$ cgi/yoursite.cgi/$1 [QSA,L]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/02/06/a-real-django-application-on-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Django on Shared Hostings</title>
		<link>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=django-on-shared-hostings</link>
		<comments>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 19:06:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Komodo]]></category>

		<guid isPermaLink="false">http://www.mehmetalierturk.com/?p=521</guid>
		<description><![CDATA[I spent last night setting up django a cgi enabled shared hosting. I faced some problems during this process and I decided to write a how to about “django on shared hosting”. First of all, make sure your editor supports &#8230; <a href="http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spent last night setting up django a cgi enabled shared hosting. I faced some problems during this process and I decided to write a how to about “django on shared hosting”.</p>
<p>First of all, make sure your editor supports Unix file format. It took my whole night to determine why I was getting internal server error. I tried some free editor on windows and it seems <a href="http://www.openkomodo.com/" rel="nofollow">Komodo</a> Edit is the best one.</p>
<p>Second, make sure your hosting supports python, to test it you can use this script below. Don’t forget to change file permissions (755 is fine) to run it.<br />
<code>#!/usr/bin/python<br />
print &#34;Content-type: text/html&#34;<br />
print<br />
print &#34;&lt;pre&gt;&#34;<br />
import os, sys<br />
from cgi import escape<br />
print &#34;&lt;strong&gt;Python %s&lt;/strong&gt;&#34; % sys.version<br />
keys = os.environ.keys()<br />
keys.sort()<br />
for k in keys:<br />
    print &#34;%st%s&#34; % (escape(k), escape(os.environ[k]))<br />
print &#34;&lt;/pre&gt;&#34;<br />
</code><br />
Now, prepare two folders to store your python lib and django projects, in your hosting something like /home/username/python and /home/username/projects, then get <a href="http://www.djangoproject.com/" rel="nofollow">django</a> and <a href="http://trac.saddi.com/flup" rel="nofollow">flup</a> unzip and upload these libraries to python folder and upload your site to projects folder. Don’t forget to change permissions of your project to 755.</p>
<p>Almost done, a script is need to handle request;<br />
<code>import sys, os<br />
sys.path += &#91;&#34;/home/username/python&#34;&#93;<br />
sys.path += &#91;&#34;/home/username/projects &#34;&#93;<br />
os.environ&#91;'DJANGO_SETTINGS_MODULE'&#93; = 'mysite.settings'<br />
from django.core.servers.fastcgi import runfastcgi<br />
runfastcgi(method=&#34;threaded&#34;, daemonize=&#34;false&#34;)<br />
</code><br />
You may need to place this script under the cgi-bin(or cgi) director. Some hosting providers don’t support fastcgi to run everywhere.</p>
<p>Now, modify and place following lines to your .htaccess file. mysite.cgi is the script above.<br />
<code>RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)$ cgi/mysite.cgi/$1 &#91;QSA,L&#93;<br />
</code><br />
Done, call your domain, you will have django welcome message.</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2009/01/11/django-on-shared-hostings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Django 1.0</title>
		<link>http://mehmetalierturk.com/2008/09/04/django-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=django-10</link>
		<comments>http://mehmetalierturk.com/2008/09/04/django-10/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 20:18:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://merturk.wordpress.com/2008/09/04/django-10/</guid>
		<description><![CDATA[Django 1.0 released. I wanna try soon&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.djangoproject.com/en/dev/releases/1.0/">Django 1.0</a> released. I wanna try soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2008/09/04/django-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Server In You Pocket</title>
		<link>http://mehmetalierturk.com/2008/04/21/the-server-in-you-pocket/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-server-in-you-pocket</link>
		<comments>http://mehmetalierturk.com/2008/04/21/the-server-in-you-pocket/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 20:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://merturk.wordpress.com/2008/04/21/the-server-in-you-pocket/</guid>
		<description><![CDATA[I&#8217;ve been dealing with iPhone since I bought it but I&#8217;ve not mentioned it before. I don&#8217;t have a mac so I don&#8217;t have an iPhone SDK too. I was using cross platform compilers to compile an application on windows &#8230; <a href="http://mehmetalierturk.com/2008/04/21/the-server-in-you-pocket/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been dealing with iPhone since I bought it but I&#8217;ve not mentioned it before. I don&#8217;t have a mac so I don&#8217;t have an iPhone SDK too. I was using cross platform compilers to compile an application on windows and put it on <a href="http://www.apple.com/iphone/">iPhone</a>. It is really painful. Today I got my first server up and running, it is <a href="http://www.djangoproject.com/">django </a>development server. Also, a crud application running on it. </p>
<p><a href="http://bp1.blogger.com/_m2dDliH3PFI/SAz5p6Lw84I/AAAAAAAAALk/D_AzN73n49Q/s1600-h/iphone.jpg"><img style="display:block;text-align:center;cursor:hand;margin:0 auto 10px;" src="http://bp1.blogger.com/_m2dDliH3PFI/SAz5p6Lw84I/AAAAAAAAALk/D_AzN73n49Q/s400/iphone.jpg" border="0" /></a></p>
<p>A <a href="http://livinghardknox.com/2007/08/20/django-and-the-iphone/">tutorial</a> is available about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://mehmetalierturk.com/2008/04/21/the-server-in-you-pocket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

