<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Conexao Python &#187; django</title>
	<atom:link href="http://conexaopython.wordpress.com/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://conexaopython.wordpress.com</link>
	<description>Um blog de TI</description>
	<lastBuildDate>Wed, 17 Sep 2008 16:39:46 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='conexaopython.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3927b2a8e2add7a4b375f5b6f4fbc8af?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Conexao Python &#187; django</title>
		<link>http://conexaopython.wordpress.com</link>
	</image>
			<item>
		<title>Atualizando Django 0.95 para 0.96 (Linux)</title>
		<link>http://conexaopython.wordpress.com/2008/07/08/atualizando-django-095-para-096-linux/</link>
		<comments>http://conexaopython.wordpress.com/2008/07/08/atualizando-django-095-para-096-linux/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 01:28:22 +0000</pubDate>
		<dc:creator>conexaopython</dc:creator>
				<category><![CDATA[instalação]]></category>
		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://conexaopython.wordpress.com/?p=11</guid>
		<description><![CDATA[Se a instalação da versão 0.95 tiver sido feita pelo apt-get, remova primeiramente essa versão.
Verifique qual a versão atual
dpkg -l python-django

Desistalando o django , instalado anteriormente pelo apt-get
dpkg &#8211;purge python-django

Baixe a versão do Django 0.96
cd /usr/local/src
wget http://www.djangoproject.com/download/0.96.2/tarball/
tar xzvf Django-0.96.2.tar.gz

Instalando o Django 0.96
cd Django-0.96.2
python setup.py install

Verificando  a instalação do django
python -c &#8220;from distutils.sysconfig import get_python_lib; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=11&subd=conexaopython&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Se a instalação da versão 0.95 tiver sido feita pelo apt-get, remova primeiramente essa versão.</p>
<p>Verifique qual a versão atual</p>
<blockquote><p>dpkg -l python-django</p></blockquote>
<p style="text-align:center;"><a href="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django1.png"><img class="size-medium wp-image-13 aligncenter" src="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django1.png?w=300&#038;h=171" alt="" width="300" height="171" /></a></p>
<p>Desistalando o django , instalado anteriormente pelo apt-get</p>
<blockquote><p>dpkg &#8211;purge python-django</p></blockquote>
<p style="text-align:center;"><a href="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django2.png"><img class="size-medium wp-image-14 aligncenter" src="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django2.png?w=300&#038;h=171" alt="" width="300" height="171" /></a></p>
<p>Baixe a versão do Django 0.96</p>
<blockquote><p>cd /usr/local/src</p>
<p>wget http://www.djangoproject.com/download/0.96.2/tarball/</p>
<p>tar xzvf Django-0.96.2.tar.gz</p></blockquote>
<p style="text-align:center;"><a href="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-2.png"><img class="size-medium wp-image-15 aligncenter" src="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-2.png?w=300&#038;h=171" alt="" width="300" height="171" /></a></p>
<p>Instalando o Django 0.96</p>
<blockquote><p>cd Django-0.96.2<br />
python setup.py install</p></blockquote>
<p style="text-align:center;"><a href="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-3.png"><img class="size-medium wp-image-16 aligncenter" src="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-3.png?w=300&#038;h=171" alt="" width="300" height="171" /></a></p>
<p>Verificando  a instalação do django</p>
<blockquote><p>python -c &#8220;from distutils.sysconfig import get_python_lib; print get_python_lib()&#8221;</p>
<p>ls -l /usr/lib/python2.4/site-packages/</p></blockquote>
<p style="text-align:center;"><a href="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-4.png"><img class="size-medium wp-image-17 aligncenter" src="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-4.png?w=300&#038;h=131" alt="" width="300" height="131" /></a></p>
<p style="text-align:left;">Fim.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/conexaopython.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/conexaopython.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/conexaopython.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/conexaopython.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/conexaopython.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/conexaopython.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/conexaopython.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/conexaopython.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/conexaopython.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/conexaopython.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/conexaopython.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/conexaopython.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=11&subd=conexaopython&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://conexaopython.wordpress.com/2008/07/08/atualizando-django-095-para-096-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f294ace6bc0800e6c66b071b11c64ac?s=96&#38;d=identicon" medium="image">
			<media:title type="html">conexaopython</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django1.png?w=300" medium="image" />

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/removendo-python-django2.png?w=300" medium="image" />

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-2.png?w=300" medium="image" />

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-3.png?w=300" medium="image" />

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/instalando-django0962-4.png?w=300" medium="image" />
	</item>
		<item>
		<title>Python module for PostgreSQL</title>
		<link>http://conexaopython.wordpress.com/2008/07/02/python-module-for-postgresql/</link>
		<comments>http://conexaopython.wordpress.com/2008/07/02/python-module-for-postgresql/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 05:07:48 +0000</pubDate>
		<dc:creator>conexaopython</dc:creator>
				<category><![CDATA[instalação]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[postreSQL]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://conexaopython.wordpress.com/?p=8</guid>
		<description><![CDATA[
Para instalação de suporte do python ao postgreSQL, atualize o através do apt-get, no ambiente debian :

Primeiro passo a Instalação do banco postegreSQL
apt-get install postgresql-8.1
Instalação de modulo de conectividade, python + postgreSQL
apt-get install python-psycopg2
Para complementar a instalação e poder ser utilizada pelo django, criar um exemplo conforme descrição abaixo:
Altere o usuário corrente para o usuário [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=8&subd=conexaopython&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ul>
<li>Para instalação de suporte do python ao postgreSQL, atualize o através do apt-get, no ambiente debian :</li>
</ul>
<p>Primeiro passo a Instalação do banco postegreSQL</p>
<blockquote><p>apt-get install postgresql-8.1</p></blockquote>
<p>Instalação de modulo de conectividade, python + postgreSQL</p>
<blockquote><p>apt-get install python-psycopg2</p></blockquote>
<p>Para complementar a instalação e poder ser utilizada pelo django, criar um exemplo conforme descrição abaixo:</p>
<p>Altere o usuário corrente para o usuário postgres , através do comando &#8220;<strong>s</strong>wicth <strong>u</strong>ser&#8221; , abreviado por &#8220;<strong>su</strong>&#8220;.</p>
<blockquote><p><strong>su</strong> postgres</p>
<p>psql</p>
<p>create user djangouser;</p>
<p>create database djangodb;</p>
<p>grant all on database djangodb to djangouser;</p>
<p>ALTER USER djangouser WITH ENCRYPTED PASSWORD &#8216;123&#8242;;</p>
<p>\q</p></blockquote>
<p>Editar o arquivo &#8220;pg_hba.conf&#8221;</p>
<p>entrar no diretório :</p>
<blockquote><p>cd /etc/postgresql/8.1/main</p>
<p>vi pg_hba.conf</p></blockquote>
<p>acrescentar, a linha , conforme figura abaixo</p>
<blockquote><p><em>local   djangodb    djangouser                        md5</em></p></blockquote>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/postgresql-djangodb.png"><img class="aligncenter size-medium wp-image-10" src="http://conexaopython.files.wordpress.com/2008/07/postgresql-djangodb.png?w=300&#038;h=188" alt="Alteraçao do arquivo \&quot;pg_hba.conf\&quot;" width="300" height="188" /></a></p>
<p>Sair da ediçao do arquivo e depois da sessão do usuário postres.</p>
<blockquote><p>exit</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/conexaopython.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/conexaopython.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/conexaopython.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/conexaopython.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/conexaopython.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/conexaopython.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/conexaopython.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/conexaopython.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/conexaopython.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/conexaopython.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/conexaopython.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/conexaopython.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=8&subd=conexaopython&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://conexaopython.wordpress.com/2008/07/02/python-module-for-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f294ace6bc0800e6c66b071b11c64ac?s=96&#38;d=identicon" medium="image">
			<media:title type="html">conexaopython</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/postgresql-djangodb.png?w=300" medium="image">
			<media:title type="html">Alteraçao do arquivo \&#34;pg_hba.conf\&#34;</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache+mod_python+Django (Linux)</title>
		<link>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/</link>
		<comments>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 02:11:40 +0000</pubDate>
		<dc:creator>conexaopython</dc:creator>
				<category><![CDATA[instalação]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[django]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[
A instalação se inicia com  inclusão do apache no linux, distribuição Debian.

Através do apt-get, se faz a instalação de maneira simples.
sudo apt-get install apache2

O segundo passo, é a instalação do mod_python, também pelo apt-get

sudo apt-get instal libapache2-mod-python

a instalação do django também através do apt-get

sudo apt-get install python-django

o passo seguinte, depois da instalação é a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=1&subd=conexaopython&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ul>
<li>A instalação se inicia com  inclusão do <strong>apache</strong> no linux, distribuição Debian.</li>
</ul>
<p>Através do apt-get, se faz a instalação de maneira simples.</p>
<blockquote><p><em>sudo apt-get install apache2</em></p></blockquote>
<ul>
<li>O segundo passo, é a instalação do <strong>mod_python,</strong> também pelo apt-get</li>
</ul>
<blockquote><p><em>sudo apt-get instal libapache2-mod-python</em></p></blockquote>
<ul>
<li>a instalação do <strong>django</strong> também através do apt-get</li>
</ul>
<blockquote><p><em>sudo apt-get install python-django</em></p></blockquote>
<ul>
<li>o passo seguinte, depois da instalação é a <strong>configuração</strong> do do <strong>mod_python</strong>.</li>
</ul>
<p>Supondo que o local onde estará instalado o sistema, seja o diretório &#8220;/var/www/intranet&#8221;.Criar um arquivo, por exemplo, <strong>intranet.com.br</strong>, no diretório &#8220;/etc/apache2/sites-enabled/&#8221;.</p>
<blockquote><p>sudo vi /etc/apache2/sites-enabled/<strong>intranet.com.br</strong></p></blockquote>
<p>incluir nesse arquivo a configuração abaixo :</p>
<blockquote><p><em>&lt;VirtualHost * &gt;<br />
ServerName <strong>www.intranet.com.br</strong><br />
&lt;Location &#8220;/&#8221;&gt;<br />
SetHandler python-program<br />
PythonPath &#8220;['<strong>/var/www/</strong>'] + sys.path&#8221;<br />
PythonHandler django.core.handlers.modpython<br />
SetEnv DJANGO_SETTINGS_MODULE intranet.settings<br />
PythonDebug On<br />
&lt;/Location&gt;</em></p>
<p><em>ErrorLog /var/log/apache2/<strong>intranet-error.log</strong><br />
LogLevel warn</em></p>
<p><em>CustomLog /var/log/apache2/<strong>intranet-access.log </strong>combined<br />
ServerSignature On<br />
&lt;/VirtualHost&gt;</em></p></blockquote>
<ul>
<li>depois de configurado, reiniciar o apache</li>
</ul>
<blockquote><p><em>sudo /etc/init.d/apache2 reload</em></p></blockquote>
<p>para acessar, utilize o seguinte artificio :</p>
<p>se o IP do servidor for, por exemplo 192.168.5.150 e o &#8220;browse&#8221; do sistema for para um ambiente windows,  altere o arquivo hosts, no endereço : C:\WINDOWS\system32\drivers\etc</p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png"><img class="aligncenter size-medium wp-image-5" src="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png?w=300&#038;h=151" alt="msdos edicao hosts" width="300" height="151" /></a></p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png"><img class="aligncenter size-medium wp-image-6" src="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png?w=300&#038;h=155" alt="msdos edicao hosts" width="300" height="155" /></a></p>
<p>Outro caminho prático, para acessar o endereço, é voce configurar o seu próprio DNS.</p>
<p>Para acessar e testar a instalação, utilize um browse, como por exemplo o firefox e digite o endereço acima cadastrado, ou seja, www.intranet.com.br</p>
<p>o resultado será esse :</p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png"><img class="aligncenter size-medium wp-image-7" src="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png?w=300&#038;h=215" alt="" width="300" height="215" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/conexaopython.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/conexaopython.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/conexaopython.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=1&subd=conexaopython&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f294ace6bc0800e6c66b071b11c64ac?s=96&#38;d=identicon" medium="image">
			<media:title type="html">conexaopython</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png?w=300" medium="image">
			<media:title type="html">msdos edicao hosts</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png?w=300" medium="image">
			<media:title type="html">msdos edicao hosts</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png?w=300" medium="image" />
	</item>
	</channel>
</rss>