I have the django project Mezzanine up and working well. They have done a 
much better job in making it easier for the user
to install and run their project.

I am now fighting to get this all working with apache.

>From the django documentation, chapter 20, i have inserted:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE portal.settings
    PythonDebug On
</Location>

Into my apache default settings.
Once again, however, I have path problems. Assuming my portal is called 
portal, when I run another small python web service 
I get the following traceback error:

 File 
"/home/roger/projects/playground/feincms_env/lib/python2.6/site-packages/django/core/handlers/base.py",
 line 39, in load_middleware
    for middleware_path in settings.MIDDLEWARE_CLASSES:

  File 
"/home/roger/projects/playground/feincms_env/lib/python2.6/site-packages/django/utils/functional.py",
 line 276, in __getattr__
    self._setup()

  File 
"/home/roger/projects/playground/feincms_env/lib/python2.6/site-packages/django/conf/__init__.py",
 line 42, in _setup
    self._wrapped = Settings(settings_module)

  File 
"/home/roger/projects/playground/feincms_env/lib/python2.6/site-packages/django/conf/__init__.py",
 line 89, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" 
% (self.SETTINGS_MODULE, e))

ImportError: Could not import settings 'portal.settings' (Is it on sys.path?): 
No module named portal.settings

I tried to add this to my apache envvars file as:
export 
PATH=/home/roger/projects/playground/feincms_env/bin:/home/roger/projects/portal:$PATH

Can someone help me resolve this final path problem? Thanks.
Roger

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/bAnugUREnzQJ.
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