HELP PLEASE

I keep getting this error:


MOD_PYTHON ERROR

ProcessId:      29055
Interpreter:    'mysite.com' (this has been changed by me)

ServerName:     'mysite.com'
DocumentRoot:   '/var/www/'

URI:            '/admin'
Location:       '/'
Directory:      None
Filename:       '/var/www/admin'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 222, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/python2.5/site-packages/django/core/handlers/
modpython.py", line 185, in __call__
    self.load_middleware()

  File "/usr/lib/python2.5/site-packages/django/core/handlers/
base.py", line 31, in load_middleware
    for middleware_path in settings.MIDDLEWARE_CLASSES:

  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py",
line 28, in __getattr__
    self._import_settings()

  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py",
line 59, in _import_settings
    self._target = Settings(settings_module)

  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py",
line 94, in __init__
    raise ImportError, "Could not import settings '%s' (Is it on
sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE,
e)

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


In my /etc/apache2/sites-available/default  I have this:
      <Location "/">
            SetHandler python-program
            PythonHandler django.core.handlers.modpython
            SetEnv DJANGO_SETTINGS_MODULE mysite.settings
            PythonOption django.root /mysite
            PythonDebug On
            PythonPath "['/home/er/local/django/','/var/www'] +
sys.path"
        </Location>

which is symbolically linked in the /etc/apache2/sites-enabled folder

I have django apps that live in:
/home/myname/local/django/mysite

my settings.py is:
/home/myname/local/django/mysite/settings.py

all of these folders and files have permissions   myname:www-data



Can anyone tell me what I'm doing wrong?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to