<?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>Johannes Luderschmidt&#039;s Blog &#187; opensuse</title>
	<atom:link href="http://johannesluderschmidt.de/lang/en-us/category/opensuse/feed/" rel="self" type="application/rss+xml" />
	<link>http://johannesluderschmidt.de</link>
	<description>This is a blog about topics like multi-touch, Flash programming and natural user interfaces.</description>
	<lastBuildDate>Tue, 24 Apr 2012 08:51:58 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Django on OpenSUSE Virtual Server</title>
		<link>http://johannesluderschmidt.de/lang/en-us/django-on-opensuse-virtual-server/300</link>
		<comments>http://johannesluderschmidt.de/lang/en-us/django-on-opensuse-virtual-server/300#comments</comments>
		<pubDate>Tue, 17 Feb 2009 12:42:09 +0000</pubDate>
		<dc:creator>johannes</dc:creator>
				<category><![CDATA[django]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://johannesluderschmidt.de/?p=300</guid>
		<description><![CDATA[I had some struggles when installing django on my OpenSUSE virtual server. It started with the problem, that I have not found a django rpm via yast in the OpenSUSE repositories. Thus, I decided to install django manually and to keep the footprint as small as possible. Luckily, Python 2.5.1 and the appropriate mod_python module [...]]]></description>
			<content:encoded><![CDATA[<p>I had some struggles when installing <a href="http://www.djangoproject.com/">django</a> on my <a href="http://opensuse.org">OpenSUSE</a> virtual server. It started with the problem, that I have not found a django rpm via yast in the OpenSUSE repositories. Thus, I decided to install django manually and to keep the footprint as small as possible. Luckily, Python 2.5.1 and the appropriate mod_python module for Apache have been installed already.</p>
<p>These are the steps that worked for me:</p>
<ol>
<li>I installed subversion, the MySQL Python lib and python-devel via yast.</li>
<li><a href="http://docs.djangoproject.com/en/dev/topics/install/#installing-official-release">I checked out the up to date django version via svn into /opt.</a></li>
<li>I ran &#8220;sudo python setup.py install&#8221; from the trunk directory.</li>
<li><a href="http://forums.opensuse.org/archives/sf-archives/archives-software/343208-adding-path-root.html">I added &#8220;PYTHONPATH = <em>djangoProjectDirectory</em>&#8221; to my bash configuration</a> (exchange <em>djangoProjectDirectory</em> with the path to your project directory).</li>
<li><a href="http://johannesluderschmidt.de/lang/en-us/django-invalid-command-setenv-in-opensuse/291">For the integration of django into Apache I needed to enable mod_env.</a></li>
<li><a href="http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#howto-deployment-modpython">According to the django mod_python site</a>, I created a snippet I need for the integration into Apache. This snippet looks like this:<code>#Map global URL /media to media folder of django's admin page<br />
Alias /media /opt/trunk/django/contrib/admin/media<br />
&#60;Directory /opt/trunk/django/contrib/admin/media&#62;<br />
	Order allow,deny<br />
	Allow from all<br />
&#60;/Directory&#62;<br />
#add django project itself (repeat so for each additional django project)<br />
&#60;Location &#34;/mysite/&#34;&#62;<br />
    SetHandler python-program<br />
    PythonHandler django.core.handlers.modpython<br />
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings<br />
    PythonOption django.root /mysite<br />
    PythonDebug On<br />
&#60;/Location&#62;</code>
</li>
<li>I stored this snippet in a separate config file called django.conf into the folder /etc/apache2/conf.d/ from which all files are automatically loaded whenever Apache starts.
</li>
<li>Restart Apache.
</li>
<li>Go to http://<em>your-domain.com</em>/mysite or http://<em>your-domain.com</em>/mysite/admin (as you might have guessed already, exchange <em>your-domain.com</em> with your domain)
</li>
</ol>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://johannesluderschmidt.de/lang/en-us/django-on-opensuse-virtual-server/300/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django Invalid command &#8216;SetEnv&#8217; in OpenSUSE</title>
		<link>http://johannesluderschmidt.de/lang/en-us/django-invalid-command-setenv-in-opensuse/291</link>
		<comments>http://johannesluderschmidt.de/lang/en-us/django-invalid-command-setenv-in-opensuse/291#comments</comments>
		<pubDate>Tue, 17 Feb 2009 11:21:12 +0000</pubDate>
		<dc:creator>johannes</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://johannesluderschmidt.de/?p=291</guid>
		<description><![CDATA[Today I came upon a problem when I wanted to integrate a Django project into my Apache via mod_python on my OpenSUSE virtual server. I put the snippet I need for Django into a separate config file called django.conf into the folder /etc/apache2/conf.d/ from which all files are automatically loaded whenever Apache starts. Everytime I [...]]]></description>
			<content:encoded><![CDATA[<p>Today I came upon a problem when I wanted to <a href="http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#howto-deployment-modpython">integrate a Django project into my Apache via mod_python</a> on my OpenSUSE virtual server.</p>
<p>I put the snippet I need for Django into a separate config file called django.conf into the folder /etc/apache2/conf.d/ from which all files are <a href="http://johannesluderschmidt.de/lang/en-us/remove-plesk-default-host-from-apache-conf-in-opensuse/283">automatically loaded whenever Apache starts</a>.</p>
<p>Everytime I wanted to start my Apache it said<br />
<code>Syntax error on line 6 of /etc/apache2/conf.d/django.conf:<br />
Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration</code></p>
<p>This seems to be a problem with the Apache configuration of OpenSUSE as mod_env which provides the SetEnv directive is installed but disabled.</p>
<p>Solution:</p>
<ol>
<li>Start yast (from the command line)</li>
<li> Select &#8220;Network Services&#8221;</li>
<li> Select &#8220;HTTP Server&#8221;</li>
<li> Select &#8220;Server Modules&#8221;</li>
<li> Select &#8220;Network Services&#8221;</li>
<li>Scroll to &#8220;env&#8221;</li>
<li>Select &#8220;Toggle Status&#8221;</li>
<li>Select &#8220;Finish&#8221;</li>
</ol>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://johannesluderschmidt.de/lang/en-us/django-invalid-command-setenv-in-opensuse/291/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

