<?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>David Poblador i Garcia &#187; django</title>
	<atom:link href="http://davidpoblador.com/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidpoblador.com</link>
	<description>#sysadmin, #SEO, #freesoftware, #entrepreneur</description>
	<lastBuildDate>Fri, 15 Jul 2011 07:48:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Green Unicorn, Django &amp; nginx stuff you should read</title>
		<link>http://davidpoblador.com/gunicorn-django-nginx-links/</link>
		<comments>http://davidpoblador.com/gunicorn-django-nginx-links/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 00:22:04 +0000</pubDate>
		<dc:creator>David Poblador i Garcia</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[dung]]></category>
		<category><![CDATA[gunicorn]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/?p=232</guid>
		<description><![CDATA[Two months ago I wrote a guide on running Django apps using Gunicorn and nginx, I&#8217;ve been reading a lot of stuff lately on the Internet about the topic. Here there are several pages you should read: Green Unicorn and Nginx on Debian by drumcoder. Deploying Django project with gunicorn and Nginx fcgi vs. gunicorn vs. [...]]]></description>
			<content:encoded><![CDATA[<p>Two months ago I wrote a guide on <a href="http://davidpoblador.com/run-django-apps-using-gunicorn-and-nginx/">running Django apps using Gunicorn and nginx</a>, I&#8217;ve been reading a lot of stuff lately on the Internet about the topic. Here there are several pages you should read:</p>
<ul>
<li><a href="http://drumcoder.co.uk/blog/2010/jul/27/installing-gunicorn-debian/">Green Unicorn and Nginx on Debian</a> by <a href="http://drumcoder.co.uk/">drumcoder</a>.</li>
<li><a href="http://www.rkblog.rk.edu.pl/w/p/deploying-django-project-gunicorn-and-nginx/">Deploying Django project with gunicorn and Nginx</a></li>
<li><a href="http://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi">fcgi vs. gunicorn vs. uWSGI</a>, nice benchmark by <a href="http://www.peterbe.com/">peterbe</a></li>
<li><a href="http://www.scribd.com/doc/31915708/Gunicorn-Django-WSGI">Gunicorn, Django, WSGI</a> by <a href="http://twitter.com/benoitc">@benoitc</a>, <a href="http://gunicorn.org/">Gunicorn</a> creator. Watch <a href="http://djangoconeu.blip.tv/file/3680717/">the conference</a> online as well.</li>
<li><a href="http://stackoverflow.com/questions/2491803/php-and-django-nginx-fastcgi-and-green-unicorn">PHP and Django: Nginx, FastCGI and Green Unicorn?</a></li>
<li><a href="http://thomas.pelletier.im/2010/05/gunicorn-django-debian-init-script/">Gunicorn / Django Debian init script</a> by <a href="http://thomas.pelletier.im/">Thomas Pelletier</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/gunicorn-django-nginx-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Run Django apps using Gunicorn and nginx</title>
		<link>http://davidpoblador.com/run-django-apps-using-gunicorn-and-nginx/</link>
		<comments>http://davidpoblador.com/run-django-apps-using-gunicorn-and-nginx/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 00:23:33 +0000</pubDate>
		<dc:creator>David Poblador i Garcia</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[dung]]></category>
		<category><![CDATA[gunicorn]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/?p=123</guid>
		<description><![CDATA[Some days ago, I read this tweet by @jessenoller (via @DZPM): The future is DUNG: Django, Unix, Nginx, Gunicorn. I plan on asking HR to look for DUNG on all resumes. What the heck is Gunicorn, I wondered&#8230; In short, Gunicorn is a Python WSGI HTTP Server easy to set up that gets on well [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Some days ago, I read this tweet by <a href="http://twitter.com/jessenoller">@jessenoller</a> (via <a href="http://www.twitter.com/DZPM">@DZPM</a>):</p>
<blockquote><p>The future is DUNG: <a href="http://www.djangoproject.com/">Django</a>, Unix, <a href="http://nginx.org/">Nginx</a>, Gunicorn. I plan on asking HR to look for DUNG on all resumes.</p></blockquote>
<p>What the heck is <a href="http://gunicorn.org/">Gunicorn</a>, I wondered&#8230; In short, Gunicorn is a Python WSGI HTTP Server easy to set up that gets on well with Django. Running Django apps using my beloved nginx gets faster and easier using Ubuntu Lucid Lynx. Look below&#8230;</p>
<ul>
<li>Install packages (I assume you&#8217;ve already set up nginx)</li>
</ul>
<pre># apt-add-repository ppa:bchesneau/gunicorn
# aptitude update
# aptitude install gunicorn supervisor python-setuptools</pre>
<ul>
<li>Edit <code>settings.py</code> in your Django app and add <code>gunicorn</code> to your <code>INSTALLED_APPS</code></li>
</ul>
<pre>INSTALLED_APPS = (
  'django.contrib.auth',
  ...
  'gunicorn',
  ...
)</pre>
<ul>
<li>Setup the supervisor of Django process in <code>/etc/supervisor/conf.d/djangoapp.conf </code></li>
</ul>
<pre>[program:djangoapp]
command=/usr/bin/python /path/to/your/app/manage.py run_gunicorn
directory=/path/to/your/app
user=www-data
autostart=true
autorestart=true
redirect_stderr=True</pre>
<ul>
<li>Restart <code>supervisor</code></li>
<li>Setup nginx</li>
</ul>
<pre>upstream app_server_djangoapp {
    server localhost:8000 fail_timeout=0;
}

server {
	listen X.X.X.X:80;
	server_name  .example.com;

	access_log  /var/log/nginx/example.com.access.log;
	error_log  /var/log/nginx/example.com.error.log info;

    keepalive_timeout 5;

    # path for static files
    root /path/to/your/app/media;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;

        if (!-f $request_filename) {
            proxy_pass http://app_server_djangoapp;
            break;
        }
    }
}</pre>
<ul>
<li>Have fun</li>
</ul>
</div>
<p>It was crystal clear LAMP&#8217;s time was over, could DUNG be the next fashionable acronym in free software web apps world?</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/run-django-apps-using-gunicorn-and-nginx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Playing Django: PageRank calculator</title>
		<link>http://davidpoblador.com/playing-django-pagerank-calculator/</link>
		<comments>http://davidpoblador.com/playing-django-pagerank-calculator/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 00:13:16 +0000</pubDate>
		<dc:creator>David Poblador i Garcia</dc:creator>
				<category><![CDATA[just for fun]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pagerank]]></category>
		<category><![CDATA[pr]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/?p=82</guid>
		<description><![CDATA[35 Celsius could be a good reason to get some fresh Die Weisse, but unfortunately, I&#8217;m not in Salzburg anymore. So I&#8217;ve decided to spend some hours playing Python and playing Django. So I&#8217;ve written a PageRank calculator I think it may be useful for all SEO fans out there. Have a look at the [...]]]></description>
			<content:encoded><![CDATA[<p>35 Celsius could be a good reason to get some fresh <a title="Die Weisse" href="http://www.dieweisse.at/">Die Weisse</a>, but unfortunately, I&#8217;m not in Salzburg anymore. So I&#8217;ve decided to spend some hours playing <a title="Python" href="http://www.python.org">Python</a> and playing <a title="Django" href="http://www.djangoproject.com/">Django</a>. So I&#8217;ve written a <a href="http://en.wikipedia.org/wiki/PageRank">PageRank</a> calculator I think it may be useful for all SEO fans out there. Have a look at the <a title="PageRank calculator" href="http://www.seoitup.com/tools/pagerank-check/">PageRank check tool</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/playing-django-pagerank-calculator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

