There is all my virtualhost config:
<VirtualHost *:80>
DocumentRoot /home/gacha
ServerName gacha.id.lv
ServerAlias www.gacha.id.lv
ServerAdmin [EMAIL PROTECTED]
<Directory />
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
<Location /dev/poll>
SetHandler mod_python
PythonPath "['/']"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE poll.settings
PythonDebug On
PythonAutoReload On
</Location>
</VirtualHost>
----------------------------------------------------------------------------------------------
But I get error:
----------------------------------------------------------------------------------------------
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
log=debug)
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
454, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named django
----------------------------------------------------------------------------------------------
In python console I can import django, seems, that apache can't, but
why?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---