<?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>Libre Experience &#187; gunicorn</title>
	<atom:link href="http://www.libre-experience.org/index.php/tag/gunicorn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.libre-experience.org</link>
	<description>Bloc-notes sur les logiciels libres</description>
	<lastBuildDate>Tue, 22 Nov 2011 07:21:41 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Django, Apache et gunicorn</title>
		<link>http://www.libre-experience.org/index.php/2010/06/05/django-apache-et-gunicorn/</link>
		<comments>http://www.libre-experience.org/index.php/2010/06/05/django-apache-et-gunicorn/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 17:53:41 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[gunicorn]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.libre-experience.org/?p=284</guid>
		<description><![CDATA[Django est un framework web Python qui dispose d&#8217;un propre serveur http, ce qui permet de tester rapidement les applications développées. Cependant il est déconseillé de l&#8217;utiliser en production. Ainsi pour une utilisation en production, on le couple à un serveur http, par exemple le très célèbre Apache. Pour ce faire on va utiliser l&#8217;interface [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.djangoproject.com">Django</a> est un framework web Python qui dispose d&#8217;un propre serveur http, ce qui permet de tester rapidement les applications développées. Cependant il est déconseillé de l&#8217;utiliser en production<span id="more-284"></span>.</p>
<p>Ainsi pour une utilisation en production, on le couple à un serveur http, par exemple le très célèbre Apache. Pour ce faire on va utiliser l&#8217;interface standard Python : WSGI (Web Server Gateway Interface). Un exemple de configuration est fourni sur la <a href="http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/">documentation officielle de Django</a>.</p>
<p>Cependant il existe un moyen à mon avis plus élégant de parvenir au but recherché : l&#8217;utilisation de <a href="http://gunicorn.org">gunicorn</a> en tant que proxy. Je n&#8217;ai pas eu encore l&#8217;occasion de le tester autrement qu&#8217;en local, mais il s&#8217;avère très prometteur en terme de rapidité. De plus, une fois gunicorn installé (très simple puisqu&#8217;il s&#8217;agit d&#8217;un package Python), la configuration est vraiment aisée.<br />
Plutôt que de paraphraser, je vous renvoie vers un <a href="http://mathieu.agopian.info/blog/2010/02/gunicorn-un-server-wsgi-ultra-simple-a-utiliser-et-configurer">article très bien fait</a>.</p>
<p><strong>Important : il faut s&#8217;assurer que les chemins vers l&#8217;application Django définis dans la configuration d&#8217;Apache sont bien accessibles par l&#8217;utilisateur qui exécute Apache.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.libre-experience.org/index.php/2010/06/05/django-apache-et-gunicorn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

