ok, I have been trying to set up Apache and mod_python. I followed all
the tutorials,
i seem to be getting the similar to error to alot of ppl but the
solutions don't work for me.

ImportError: Could not import settings 'bltss.settings' (Is it on
sys.path? Does it have syntax errors?): No module named bltss.settings

This is httpd.conf:

<Location "/bltss/">
    SetHandler python-program
    PythonPath "['D:/Projects/'] + ['D:/Projects/bltss/'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE bltss.settings
    PythonHandler django.core.handlers.modpython
    PythonOption django.root /bltss
    PythonDebug On
</Location>

the actual settings file is located within the bltss directory.

I believe it may have something to do with the pythonpath, after
starting the webserver I checked the path on the command line.

import sys
sys.path

which returns a path that does not contain the settings specified
above.
if manually add them to the path, I am able to manually execute
'import bltss.settings' on the command line without error.
however the browser still returns the Import Error






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to