title: Running Python scripts like PHP
body: <p>There are Apache 2 + mod_wsgi + Python 2.6 on server.</p>
  
  <p>I would like to run scripts from Python like PHP scripts. The idea may seem silly, but I'm so accustomed (at least at first learning Python).</p>
  
  <p>Example:</p>
  
  <p>PHP - <a href="http://example.com/script.php" rel="nofollow">http://example.com/script.php</a></p>
  
  <p>Python - <a href="http://example.com/script.py" rel="nofollow">http://example.com/script.py</a></p>
  
  <p>P.S. I know about mod_rewrite and other similar tricks that can do that. But it is only a disguise, and not a direct run.</p>
  
  <p>UPD: My .htaccess file. index.py works, but other python scripts get 404 error.</p>
  
  <pre><code>&lt;Files *.py&gt;
  SetHandler wsgi-script
  Options ExecCGI FollowSymLinks
  &lt;/Files&gt;
   DirectoryIndex index.py
  </code></pre>