title: Setting up Django with mod_python, Apache on SuSE with Alias
body: <p>I'm having major problems getting Django working with my Apache configuration.  I did not create the server, so I don't have too much leeway as to how the server works.  Essentially there are three virtual hosts:</p>
  
  <p>board.site.org, students.site.org and insider.site.org</p>
  
  <p>The insider.site.org is the main one I'm concerned with.  I'm in charge of a small site underneath it (ideally at insider.site.org/tech).  I decided to put my files separate from the original directory, as not to chance messing up something in there (since a non-python site is already in place).  Anyway, my virtual hosts are defined in separate files in /etc/apache2/vhosts.d/</p>
  
  <p>Here's what the insider.site.org's config looks like</p>
  
  <p>insider.conf</p>
  
  <pre><code>LoadModule python_module /usr/lib64/apache2/mod_python.so
  
  &lt;VirtualHost 10.10.1.1:80&gt;
  ServerName insider.site.org
  DocumentRoot /media/nss/VWEB/docs
     &lt;Directory /media/nss/VWEB/docs&gt;
        Options Indexes Multiviews
        AllowOverride None
        Order Allow,Deny
        #Allow from 10.11.0.78
        Allow from all
     &lt;/Directory&gt;
  
  Alias /tech  /srv/www/Tech
  
     &lt;Directory /srv/www/Tech&gt;
        SetHandler python-program
        PythonPath "['/srv/www/Tech'] + sys.path"
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE Tech.settings
        PythonDebug On
     &lt;/Directory&gt;
  
  
  Alias /media /srv/www/Media
  
     &lt;Directory /srv/www/Media&gt;
        SetHandler None
     &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <ul>
  <li>Note that when saying site.org, I'm referring to my site, not the actually "site.org" web address.</li>
  </ul>
  
  <p>Now, it seems like that should be right to me, but for some reason, accessing <a href="http://insider.site.org/tech/" rel="nofollow noreferrer">http://insider.site.org/tech/</a> gives me this error:</p>
  
  <blockquote>
    <p>Mod_python error: "PythonHandler
    mod_python.publisher"</p>
    
    <p>Traceback (most recent call last):</p>
    
    <p>File
    "/usr/lib64/python2.4/site-packages/mod_python/apache.py",
    line 299, in HandlerDispatch
        result = object(req)</p>
    
    <p>File
    "/usr/lib64/python2.4/site-packages/mod_python/publisher.py",
    line 98, in handler
        path=[path])</p>
    
    <p>File
    "/usr/lib64/python2.4/site-packages/mod_python/apache.py",
    line 454, in import_module
        f, p, d = imp.find_module(parts[i], path)</p>
    
    <p>ImportError: No module named index</p>
  </blockquote>
  
  <p>Whereas <a href="http://insider.site.org/tech" rel="nofollow noreferrer">http://insider.site.org/tech</a> (no trailing forward slash) results in a 403 error.  I do have Django in this directory, but it simply isn't getting executed (I have _ <em>init</em> _.py in all my directories under the tech folder, and this is a copy from my own personal computer (which ran off of the django test server)) so I don't think that's the problem.  This is simply not working :-(</p>
  
  <p>Any help is appreciated, thanks.</p>