Hello, I'm very new to Django and trying to configure apache to work with the tutorial application. I installed mod_python and configured httpd.conf to look like this: ---- # mod python LoadModule python_module /usr/lib/apache2/modules/mod_python.so NameVirtualHost *:80 <VirtualHost *:80> ServerName django.test DocumentRoot "/home/gte351s/dev/django/mysite" PythonPath "['/home/gte351s/dev/django/mysite', '/usr/local/lib/python2.6/dist-packages/django'] + sys.path" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On </VirtualHost> ----
I have nothing else in that file. When I point the browser to http://localhost/time/ I get a mod_python error: ======Hello, I'm very new to Django and trying to configure apache to work with the tutorial application. I installed mod_python and configured httpd.conf to look like this: ---- # mod python LoadModule python_module /usr/lib/apache2/modules/mod_python.so NameVirtualHost *:80 <VirtualHost *:80> ServerName django.test DocumentRoot "/home/gte351s/dev/django/mysite" PythonPath "['/home/gte351s/dev/django/mysite', '/usr/local/lib/python2.6/dist-packages/django'] + sys.path" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On </VirtualHost> ---- I have nothing else in that file. When I point the browser to http://localhost/time/ I get a mod_python error: ====== ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings ====== This is obviously a configuration error, but I'm not sure how to set up apache to properly find the django app. I'd appreciate any help on this - thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---