I have mod_python set working fine with apache. I have django setting as following at apache -------------------------------------------------------------------------------------------- <VirtualHost *:80> ServerAdmin webmas...@dummy-host2.li DocumentRoot "C:/depot/projects/web/" ServerName web ServerAlias *.web ErrorLog "logs/dummy-host2.li-error_log" CustomLog "logs/dummy-host2.li-access_log" common
<Location "C:/depot/projects/web/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE web.settings PythonOption django.root "C:/depot/projects/web/" PythonDebug On </Location> <Location "/media"> SetHandler None </Location> <LocationMatch "\.(jpg|gif|png|css|js)$"> SetHandler None </LocationMatch> </VirtualHost> --------------------------------------------------------------------------------------------- But I always got error "ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. " Thanks for any help! --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---