If I write: <Location "/home/gacha/poll"> SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath "['/home/gacha/poll'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE myproject.settings PythonDebug On </Location>
then I get error: EnvironmentError: Could not import DJANGO_SETTINGS_MODULE But when I change: PythonPath "['/home/gacha/poll'] + sys.path" to: PythonPath "['/home/gacha/poll']" then I get this: 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 ---------------- How to get this to work? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---