Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango MOD_PYTHON ERROR
    text
    copied!<p>I have had django running with mod_python for awhile now but today I get the following error</p> <pre><code>MOD_PYTHON ERROR ProcessId: 4551 Interpreter: 'thatch' ServerName: 'thatch' DocumentRoot: '/var/www/thatch' URI: '/' Location: '/' Directory: None Filename: '/var/www/thatch/' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1202, in _process_target module = import_module(module_name, path=path) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*']) ImportError: No module named django.core.handlers.modpython </code></pre> <p>This is my virtual host configuration</p> <pre><code>&lt;VirtualHost *:80&gt; ServerName thatch DocumentRoot /var/www/thatch &lt;Location "/"&gt; SetHandler python-program PythonPath "['/var/www/thatch'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE thatch.settings PythonOption django.root /var/www/thatch PythonDebug On &lt;/Location&gt; &lt;Location "/media"&gt; SetHandler None &lt;/Location&gt; &lt;LocationMatch "\.(jpg|gif|png|css|js)$"&gt; SetHandler None &lt;/LocationMatch&gt; &lt;/VirtualHost&gt; </code></pre> <p>Any ideas why this is happening?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload