<?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>Randell&#039;s Blog &#187; Django</title>
	<atom:link href="http://blog.randell.ph/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.randell.ph</link>
	<description>Software development, Fedora how-to&#039;s, and random stuff from the web</description>
	<lastBuildDate>Mon, 12 Dec 2011 01:54:07 +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>Fedora 15 pre/post-installation setup</title>
		<link>http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/</link>
		<comments>http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/#comments</comments>
		<pubDate>Sat, 28 May 2011 18:16:38 +0000</pubDate>
		<dc:creator>Randell</dc:creator>
				<category><![CDATA[Dev Notes]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Alacarte]]></category>
		<category><![CDATA[Amarok]]></category>
		<category><![CDATA[Aptana]]></category>
		<category><![CDATA[Azureus]]></category>
		<category><![CDATA[Calibre]]></category>
		<category><![CDATA[chmsee]]></category>
		<category><![CDATA[cmake]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Fedora 15]]></category>
		<category><![CDATA[Fedora Eclipse]]></category>
		<category><![CDATA[Filezilla]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Grip]]></category>
		<category><![CDATA[Java SE SDK]]></category>
		<category><![CDATA[LibreOffice]]></category>
		<category><![CDATA[MySQL Workbench]]></category>
		<category><![CDATA[OptiPNG]]></category>
		<category><![CDATA[P7zip]]></category>
		<category><![CDATA[pgadmin3]]></category>
		<category><![CDATA[PulseCaster]]></category>
		<category><![CDATA[PyLint]]></category>
		<category><![CDATA[QT]]></category>
		<category><![CDATA[RPM Fusion]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[Unrar]]></category>
		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://blog.randell.ph/?p=2106</guid>
		<description><![CDATA[I have mentioned in my previous post containing GNOME 3 screenshots (which I should say is a thing of beauty) that I&#8217;ve installed Fedora 15. During the pre-installation customization page, I clicked some of the familiar items that I would normally install eventually: Applications Design Suite (contains GIMP and OptiPNG, plus more) Office/Productivity (contains LibreOffice) [...]
Related posts:<ol>
<li><a href='http://blog.randell.ph/2011/11/19/fedora-16-prepost-installation-setup/' rel='bookmark' title='Fedora 16 pre/post-installation setup'>Fedora 16 pre/post-installation setup</a></li>
<li><a href='http://blog.randell.ph/2010/11/17/fedora-14-post-installation-setup/' rel='bookmark' title='Fedora 14 post-installation setup'>Fedora 14 post-installation setup</a></li>
<li><a href='http://blog.randell.ph/2009/07/22/setting-up-fedora-11/' rel='bookmark' title='Setting-up Fedora 11'>Setting-up Fedora 11</a></li>
<li><a href='http://blog.randell.ph/2008/12/03/setting-up-fedora-10/' rel='bookmark' title='Setting-up Fedora 10'>Setting-up Fedora 10</a></li>
<li><a href='http://blog.randell.ph/2008/06/05/setting-up-fedora-9/' rel='bookmark' title='Setting-up Fedora 9'>Setting-up Fedora 9</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.randell.ph%2F2011%2F05%2F29%2Ffedora-15-prepost-installation-setup%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.randell.ph%2F2011%2F05%2F29%2Ffedora-15-prepost-installation-setup%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have mentioned in <a title="GNOME 3 on Fedora 15" href="http://blog.randell.ph/2011/05/29/gnome-3-on-fedora-15/">my previous post containing GNOME 3 screenshots</a> (which I should say is a thing of beauty) that I&#8217;ve installed Fedora 15.</p>
<p>During the pre-installation customization page, I clicked some of the familiar items that I would normally install eventually:</p>
<p><strong>Applications</strong></p>
<ul>
<li>Design Suite (contains GIMP and OptiPNG, plus more)</li>
<li>Office/Productivity (contains LibreOffice)</li>
<li>Sound &amp; Video (checked Amarok)</li>
</ul>
<p><strong>Development</strong></p>
<ul>
<li>Development Tools (checked cmake and PyLint)</li>
<li>Fedora Eclipse</li>
<li>Java Development</li>
<li>Web Development (checked Django)</li>
</ul>
<p><strong>Servers</strong></p>
<ul>
<li>Mail Server (SendMail)</li>
<li>MySQL Database (checked php-mysql)</li>
<li>PostgreSQL Database</li>
<li>Printing Support</li>
<li>Server Configuration Tools</li>
<li>Web Server (mod_python, mod_ssl, php, php-ldap)</li>
</ul>
<p>Here&#8217;s my post-installation setup:</p>
<h3>Update</h3>
<p>Updating for the first time also installs the GPG keys, which are needed so you won’t get errors regarding unsigned packages when you use the “fedora” and “updates” repositories of Fedora. In our terminal, as root, type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum update</pre></div></div>

<h3>RPM Fusion</h3>
<p>From <a title="RPM Fusion" href="http://rpmfusion.org/" target="_blank">the RPM Fusion website site</a>:</p>
<blockquote><p>RPM Fusion provides software that the <a href="http://fedoraproject.org/">Fedora Project</a> or <a href="http://www.redhat.com/">Red Hat</a> doesn&#8217;t want to ship. That software is provided as precompiled RPMs for all current Fedora versions and Red Hat Enterprise Linux 5; you can use the RPM Fusion repositories with tools like yum and PackageKit.</p>
<p>RPM Fusion is a merger of <a href="http://dribble.org.uk/">Dribble</a>, <a href="http://freshrpms.net/">Freshrpms</a>, and <a href="http://rpm.livna.org/">Livna</a>; our goal is to simplify end-user experience by grouping as much add-on software as possible in a single location.</p></blockquote>
<p>To install both the free and non-free repositories, simply download and double-click the <a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm">RPM Fusion free for Fedora Rawhide and what will become Fedora 15 (Alpha, Beta and snapshots)</a> and <a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm">RPM Fusion nonfree for Fedora Rawhide and what will become Fedora 15 (Alpha, Beta and snapshots)</a> from the <a title="RPM Fusionm Configuration" href="http://rpmfusion.org/Configuration">RPM Fusion Configuration </a>page.</p>
<h3>Google Chrome</h3>
<p>Download the rpm file from <a title="Chrome for Linux" href="http://www.google.com/chrome" target="_blank">the Chrome download page</a>. Installing it is as easy as double-clicking the file.</p>
<h3>Mozilla Firefox</h3>
<p><a title="Firefox add-ons I actively use" href="http://blog.randell.ph/2010/04/07/firefox-add-ons-i-actively-use/" target="_blank">Firefox add-ons that use</a>.</p>
<h3>Azureus</h3>
<p>This is what I use to download torrents.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> azureus</pre></div></div>

<h3>p7zip</h3>
<p>For operating with the 7z file archiving format.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> p7zip</pre></div></div>

<h3>Filezilla</h3>
<p>For transfering files between machines.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> filezilla</pre></div></div>

<h3>pgadmin3</h3>
<p>For PostgreSQL database administration.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> pgadmin3</pre></div></div>

<h3>VLC</h3>
<p>For watching videos without worrying about the file formats:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> vlc</pre></div></div>

<h3>Unrar</h3>
<p>For extracting RAR file archives.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> unrar</pre></div></div>

<h3>Grip</h3>
<p>CD-ripper with database lookup/submission to share track information over the net, supports OGG and FLAC and adding ID3v1/v2 to MP3s.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> grip</pre></div></div>

<h3>Skype</h3>
<p>They now have <a title="Skype 2.2 Beta for Linux" href="http://www.skype.com/intl/en/get-skype/on-your-computer/linux/downloading.fedora" target="_blank">Skype 2.2 Beta for Linux</a>. Simply download and double-click the RPM installer.</p>
<h3>PulseCaster</h3>
<p>This is what I use for recording Skype calls.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> pulsecaster</pre></div></div>

<h3>vsftpd</h3>
<p>Secure, fast FTP server</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> vsftpd</pre></div></div>

<h3>Alacarte</h3>
<p>To create custom application launchers.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> alacarte</pre></div></div>

<h3>Tomcat 6</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> tomcat6</pre></div></div>

<h3>PHP</h3>
<p>Some PHP modules that I need for web development.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> php-xml</pre></div></div>

<h3>Sun JDK</h3>
<p>Download Java SE SDK RPM Installer from the <a title="Java SE Downloads" href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank">Java SE Downloads page</a> and execute the similar commands as root:</p>
<p>Run the Java JDK binary:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>randell<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>jdk-6u25-linux-i586-rpm.bin
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>randell<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>jdk-6u25-linux-i586-rpm.bin</pre></div></div>

<p>Install Java JDK java, javaws, libjavaplugin.so (for Firefox) and javac using <code>alternatives –install</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java java <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_25<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #000000;">20000</span>
alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javaws javaws <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_25<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javaws <span style="color: #000000;">20000</span>
alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>libjavaplugin.so  libjavaplugin.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_25<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>libnpjp2.so <span style="color: #000000;">20000</span>
alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javac javac <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_25<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>javac <span style="color: #000000;">20000</span>
alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>jar jar <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_25<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>jar <span style="color: #000000;">20000</span></pre></div></div>

<p>Add the following JAVA_HOME environment variable to <code>/etc/profile</code>:</p>
<pre>export JAVA_HOME="/usr/java/jdk1.6.0_25"</pre>
<h3>MySQL Workbench</h3>
<p>For designing databases visually.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-workbench</pre></div></div>

<h3>Calibre</h3>
<p>For converting e-books to different formats and for managing your e-book collection.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> calibre</pre></div></div>

<h3>bash auto-completion</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> bash-completion</pre></div></div>

<h3>chmsee</h3>
<p>HTML Help viewer for Unix/Linux (for viewing <code>.chm</code> files).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> chmsee</pre></div></div>

<h3>Development files for Qt toolkit</h3>
<p>To develop applications using the Qt toolkit. And include the graphical configuration tool as well.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> qt-devel qt-config</pre></div></div>

<h3>GStreamer non-free plugins</h3>
<p>From the <a title="Non-free plugins for GStreamer" href="http://fedoraunity.org/Members/jpmahowald/non-free-plugins-for-gstreamer">Fedora Unity Project</a>:</p>
<blockquote><p>GStreamer is a multimedia framework used by many media players including rhythmbox, banshee, totem, listen, exaile and others. Due to legal issues support for various non-free formats , including mp3 files, aren&#8217;t included with GStreamer by default. You can add support for mp3 and other formats by installing an add-on package from the third party repository rpm.livna.org</p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg phonon-backend-gstreamer</pre></div></div>

<h3>FFMpeg</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> ffmpeg-libs</pre></div></div>

<h3>DVD playback</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> libdvdread libdvdnav lsdvd</pre></div></div>

<h3>Aptana</h3>
<p>Downloaded Aptana 3 from <a href="http://www.aptana.com/">http://www.aptana.com/</a>.</p>
<h3>GnomeTweakTool</h3>
<p>One of the things that weren&#8217;t immediately obvious when I was setting-up Fedora 15 was the ability to easily change the font sizes for applications, documents and windows. Googling led me to GnomeTweakTool, which allows us to customize &#8220;advanced&#8221; GNOME 3 options.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-tweak-tool</pre></div></div>

<p>After installing TweakTool, I customized my fonts as follows:</p>
<ul>
<li>Document font: Sans 10</li>
<li>Monospace font: Monospace 10</li>
</ul>
<h3>File Management Preferences</h3>
<p>From a Nautilus window, go to Edit &gt; Preferences. I modified mine to reflect the following changes:</p>
<ul>
<li>Default View &gt; View new folders using: List View</li>
<li>Icon View Defaults &gt; Default zoom level: 66%</li>
<li>List View Defaults &gt; Default zoom level: 33%</li>
</ul>
<h3>Favorites</h3>
<p>I customized my Favorites to include these frequently used applications:</p>
<ul>
<li>Chrome</li>
<li>Firefox (added by default)</li>
<li>Terminal</li>
<li>Files (added by default)</li>
<li>Amarok</li>
<li>Eclipse</li>
<li>Empathy</li>
<li>Take Screenshot</li>
</ul>
<h3>Terminal</h3>
<p>Edit &gt; Profile Preferences &gt; Colors &gt; Foreground and Background</p>
<ul>
<li>Use colors from system theme: Unchecked</li>
<li>Built-in schemes: Green on black</li>
</ul>
<h3>Text Editor</h3>
<p>Edit &gt; Preferences</p>
<ul>
<li>View
<ul>
<li>Line Numbers &gt;  Display line numbers: Checked</li>
<li>Current Line &gt; Highlight current line: Checked</li>
<li>Right Margin &gt;  Display right margin: Checked</li>
<li>Bracket Matching &gt; Highlight matching bracket: Checked</li>
</ul>
</li>
<li>Editor
<ul>
<li>Tab Stops
<ul>
<li>Tab width: 4</li>
<li>Insert spaces instead of tabs: Checked</li>
</ul>
</li>
<li>Automatic Indentation &gt; Enable automatic indentation: Checked</li>
<li>File Saving
<ul>
<li>Create a backup of files before saving: Unchecked</li>
<li>Autosave files every: 5 minutes</li>
</ul>
</li>
<li>Font &amp; Colors &gt; Color Scheme: Oblivion</li>
</ul>
</li>
</ul>
<p><em>* I&#8217;ll simply update this post if ever I come across software I use that I forgot to list here.</em></p>
<p>Related posts:<ol>
<li><a href='http://blog.randell.ph/2011/11/19/fedora-16-prepost-installation-setup/' rel='bookmark' title='Fedora 16 pre/post-installation setup'>Fedora 16 pre/post-installation setup</a></li>
<li><a href='http://blog.randell.ph/2010/11/17/fedora-14-post-installation-setup/' rel='bookmark' title='Fedora 14 post-installation setup'>Fedora 14 post-installation setup</a></li>
<li><a href='http://blog.randell.ph/2009/07/22/setting-up-fedora-11/' rel='bookmark' title='Setting-up Fedora 11'>Setting-up Fedora 11</a></li>
<li><a href='http://blog.randell.ph/2008/12/03/setting-up-fedora-10/' rel='bookmark' title='Setting-up Fedora 10'>Setting-up Fedora 10</a></li>
<li><a href='http://blog.randell.ph/2008/06/05/setting-up-fedora-9/' rel='bookmark' title='Setting-up Fedora 9'>Setting-up Fedora 9</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use</title>
		<link>http://blog.randell.ph/2010/08/02/unacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use/</link>
		<comments>http://blog.randell.ph/2010/08/02/unacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 02:00:01 +0000</pubDate>
		<dc:creator>Randell</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[easy_install]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[setuptools]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://blog.randell.ph/?p=1594</guid>
		<description><![CDATA[The Django version I have in my machine is 1.2.1, while one of my apps running on Google App Engine utilizes use_library to use Django 1.1. Apparently, Django versions later than 1.1 is not included in the Google App Engine SDK. So everytime I try to access my app on my dev machine, I get [...]
Related posts:<ol>
<li><a href='http://blog.randell.ph/2010/07/30/how-to-find-django-version/' rel='bookmark' title='How to find Django version'>How to find Django version</a></li>
<li><a href='http://blog.randell.ph/2010/04/04/setuptools/' rel='bookmark' title='Install setuptools in Fedora 12'>Install setuptools in Fedora 12</a></li>
<li><a href='http://blog.randell.ph/2009/09/17/install-idle-on-fedora-11/' rel='bookmark' title='Install IDLE on Fedora 11'>Install IDLE on Fedora 11</a></li>
<li><a href='http://blog.randell.ph/2010/04/03/convert-chm-to-pdf-in-fedora-linux/' rel='bookmark' title='Convert CHM to PDF in (Fedora) Linux'>Convert CHM to PDF in (Fedora) Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.randell.ph%2F2010%2F08%2F02%2Funacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.randell.ph%2F2010%2F08%2F02%2Funacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="How to find Django version" href="http://blog.randell.ph/2010/07/30/how-to-find-django-version/" target="_blank">The Django version I have in my machine is 1.2.1</a>, while one of my apps running on Google App Engine utilizes <code>use_library</code> to use Django 1.1. Apparently, <a title="Third-party Python Libraries - Django" href="http://code.google.com/appengine/docs/python/tools/libraries.html#Django" target="_blank">Django versions later than 1.1 is not included in the Google App Engine SDK</a>. So everytime I try to access my app on my dev machine, I get this error:</p>
<blockquote><p>UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use</p></blockquote>
<p>I can probably downgrade the version of Django in my machine, but that would mean all my other apps will have to use the downgraded Django version as well. And I don&#8217;t want that, since I want to use the latest version whenever possible. So one possible solution is to use virtualenv for my Google App Engine app. Virtualenv allows the creation of isolated Python environment, which is exactly what I need.</p>
<p>First, we need to install virtualenv. In Fedora, we can install virtualenv by executing the following command as root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> python-virtualenv</pre></div></div>

<p>Next, we use virtualenv to create an environment that has its own installation directories, that doesn&#8217;t share libraries with other virtualenv environments. We can even choose to not use other globally installed libraries. To do that, execute the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">virtualenv <span style="color: #660033;">--no-site-packages</span> ENV</pre></div></div>

<p><code>ENV</code> here is the directory of our new environment. This also creates <code>ENV/lib/python2.6/site-packages</code> on Python 2.6, where any libraries that will be installed will go. This also creates <code>ENV/bin/python</code>, which is a Python interpreter that uses this environment. Anytime this interpreter is used, the libraries in this environment will be used. The command also installs <a title="Setuptools" href="http://blog.randell.ph/2010/04/04/setuptools/" target="_blank">Setuptools</a> for the environment, and if <code>ENV/bin/easy_install</code> is used the packages will be installed into the environment.</p>
<p>The <code>--no-packages</code> option during the build causes the environment to not inherit any packages from <code>/usr/lib/python2.6/site-packages</code>. This is useful if we don&#8217;t want to depend on the packages there or simply want more isolation from the global system.</p>
<p>Next, we&#8217;ll use <a title="pip installs packages" href="http://pypi.python.org/pypi/pip" target="_blank">pip</a> to install the necessary packages in our virtualenv environment. Of course, we need to have pip installed in our system first. In Fedora, we can install pip by executing the following command as root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> python-pip</pre></div></div>

<p>And then installed the Django version we need into the environment:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pip <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-E</span> ENV <span style="color: #007800;">Django</span>==<span style="color: #000000;">1.1</span></pre></div></div>

<p>To use our new environment, we need to activate it with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">source</span> ENV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>activate</pre></div></div>

<p>Copy the Google App Engine SDK to our new environment and then run our Google App Engine app from that environment like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>ENV<span style="color: #000000; font-weight: bold;">/</span>google_appengine<span style="color: #000000; font-weight: bold;">/</span>dev_appserver.py ~<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>app</pre></div></div>

<p>You can follow the same steps to create isolated environments for each of your Python projects.</p>
<p>Related posts:<ol>
<li><a href='http://blog.randell.ph/2010/07/30/how-to-find-django-version/' rel='bookmark' title='How to find Django version'>How to find Django version</a></li>
<li><a href='http://blog.randell.ph/2010/04/04/setuptools/' rel='bookmark' title='Install setuptools in Fedora 12'>Install setuptools in Fedora 12</a></li>
<li><a href='http://blog.randell.ph/2009/09/17/install-idle-on-fedora-11/' rel='bookmark' title='Install IDLE on Fedora 11'>Install IDLE on Fedora 11</a></li>
<li><a href='http://blog.randell.ph/2010/04/03/convert-chm-to-pdf-in-fedora-linux/' rel='bookmark' title='Convert CHM to PDF in (Fedora) Linux'>Convert CHM to PDF in (Fedora) Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.randell.ph/2010/08/02/unacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to find Django version</title>
		<link>http://blog.randell.ph/2010/07/30/how-to-find-django-version/</link>
		<comments>http://blog.randell.ph/2010/07/30/how-to-find-django-version/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 17:12:52 +0000</pubDate>
		<dc:creator>Randell</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.randell.ph/?p=1603</guid>
		<description><![CDATA[There are cases when you would want to know the version of Django that is being used in your Python installation. To do that, go to your Python console and execute the following commands: &#62;&#62;&#62; import django &#62;&#62;&#62; django.VERSION In my machine, it showed the following: &#40;1, 2, 1, 'final', 0&#41; Related posts: UnacceptableVersionError: django [...]
Related posts:<ol>
<li><a href='http://blog.randell.ph/2010/08/02/unacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use/' rel='bookmark' title='UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use'>UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.randell.ph%2F2010%2F07%2F30%2Fhow-to-find-django-version%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.randell.ph%2F2010%2F07%2F30%2Fhow-to-find-django-version%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>There are cases when you would want to know the version of Django that is being used in your Python installation. To do that, go to your Python console and execute the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> django
<span style="color: #66cc66;">&gt;&gt;&gt;</span> django.<span style="color: black;">VERSION</span></pre></div></div>

<p>In my machine, it showed the following:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span>, <span style="color: #ff4500;">2</span>, <span style="color: #ff4500;">1</span>, <span style="color: #483d8b;">'final'</span>, <span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Related posts:<ol>
<li><a href='http://blog.randell.ph/2010/08/02/unacceptableversionerror-django-1-1-was-requested-but-1-2-1-final-0-is-already-in-use/' rel='bookmark' title='UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use'>UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.randell.ph/2010/07/30/how-to-find-django-version/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

