<?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>Prune&#039;s Blog &#187; Django</title>
	<atom:link href="http://www.lecentre.net/blog/archives/category/dev/django/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lecentre.net/blog</link>
	<description>Internet, UNIX, Video, Leisure...</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:38:44 +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>Building MacPorts Py-Mysql on Leopard</title>
		<link>http://www.lecentre.net/blog/archives/235</link>
		<comments>http://www.lecentre.net/blog/archives/235#comments</comments>
		<pubDate>Fri, 15 Feb 2008 21:46:24 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/235</guid>
		<description><![CDATA[If you installed over your old Tiger or if you are new user, you may have experienced errors when trying to build py-mysql.Py-mysql is a Python module to connect to Mysql.I&#8217;m using it to have Django, the Python Web Framework, to connect to Mysql database. This is what I got when trying to install :   # [...]]]></description>
			<content:encoded><![CDATA[<p>If you installed over your old Tiger or if you are new user, you may have experienced errors when trying to build py-mysql.Py-mysql is a Python module to connect to Mysql.I&#8217;m using it to have Django, the Python Web Framework, to connect to Mysql database. This is what I got when trying to install :  
<pre lang="bash"># port install py-mysql
--->  Building py-mysql with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mysql/work/MySQL-python-1.2.2" &#038;&#038; /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-ppc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/opt/local/include/mysql5/mysql -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _mysql.c -o build/temp.macosx-10.3-ppc-2.4/_mysql.o
In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
                 from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in declaration specifiers
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
</pre>
<p>I tried to upgrade MacPorts&#8230; but I already had the latest.</p>
<pre lang="bash"># port selfupdate

MacPorts base version 1.600 installed

Downloaded MacPorts base version 1.600

The MacPorts installation is not outdated and so was not updated
selfupdate done!</pre>
<p>I finaly found the solution on <a href="http://rob.cogit8.org/blog/2007/Nov/14/installing-django-leopard-mac-os-105/" target="_blank">http://rob.cogit8.org/blog/2007/Nov/14/installing-django-leopard-mac-os-105/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>une fiche memo pour Django</title>
		<link>http://www.lecentre.net/blog/archives/15</link>
		<comments>http://www.lecentre.net/blog/archives/15#comments</comments>
		<pubDate>Fri, 08 Jun 2007 22:15:17 +0000</pubDate>
		<dc:creator>Prune</dc:creator>
				<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.lecentre.net/blog/archives/15</guid>
		<description><![CDATA[C&#8217;est pas nouveau mais je viens de tomber la dessus. Ca peut etre pratique, surtout que je vais essayer de m&#8217;y remettre un peu&#8230; bref, c&#8217;est ici]]></description>
			<content:encoded><![CDATA[<p>C&#8217;est pas nouveau mais je viens de tomber la dessus. Ca peut etre pratique, surtout que je vais essayer de m&#8217;y remettre un peu&#8230;<br />
bref, c&#8217;est <a href="http://www.mercurytide.com/whitepapers/django-cheat-sheet/">ici</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lecentre.net/blog/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

