Several people answered to your question here: http://groups.google.com/group/django-users/browse_thread/thread/2f98dfb324b86747/884e9a5477deb6ca?q=#884e9a5477deb6ca
Alan On May 8, 7:54 am, online <online.service....@gmail.com> wrote: > forgot to mention the error message: > > ----------------------------------------------------------------------------------------------------------------------- > ImportError: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE is undefined > > ----------------------------------------------------------------------------------------------------------------------- > > On May 7, 9:49 pm, online <online.service....@gmail.com> wrote: > > > django is realy cool. But it is so frustrated to get django work on my > > windows machine. > > > here is my setting/configures > > > python setting at httpd.conf: > > -------------------------------------------------- > > > <Directory "C:/depot/projects/web/"> > > Options Indexes FollowSymLinks MultiViews > > AllowOverride All > > Order allow,deny > > allow from all > > AddHandler python-program .py > > PythonHandler mod_python.publisher > > PythonPath "['C:/Python25/Lib/site-packages/mod_python/',] > > +sys.path" > > PythonDebug On > > </Directory> > > ---------------------------------------------------------- > > > django setting at vhosts.conf: > > > ------------------------------------------------------------------------------------- > > <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 "/web"> > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > PythonOption django.root "C:/depot/projects/web/" > > SetEnv DJANGO_SETTINGS_MODULE web.settings > > PythonPath "['C:/depot/projects/web/'] + sys.path" > > PythonDebug On > > </Location> > > > <Location "/media"> > > SetHandler None > > </Location> > > > <LocationMatch "\.(jpg|gif|png|css|js)$"> > > SetHandler None > > </LocationMatch> > > > </VirtualHost> > > ----------------------------------------------------------------------------- > > or you can see from this link: > > >http://stackoverflow.com/questions/823458/django-apache-on-windows-se... > > > Any help is much appreciated! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---