Hi, thanks for quick reply.

When I did as suggested I received:
>>>>
EnvironmentError: Could not import settings 'settings' (Is it on
sys.path? Does it have syntax errors?): No module named settings
<<<<<

so I also changed the PythonPath to
PythonPath "['/srv/code/syslog/'] + sys.path"

now I receive:
>>>>>
Traceback (most recent call last):

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

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

  File "/srv/code/python/lib/python2.4/site-packages/mod_python/
importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/srv/code/python/lib/python2.4/site-packages/django/core/
handlers/modpython.py", line 177, in handler
    return ModPythonHandler()(req)

  File "/srv/code/python/lib/python2.4/site-packages/django/core/
handlers/modpython.py", line 145, in __call__
    self.load_middleware()

  File "/srv/code/python/lib/python2.4/site-packages/django/core/
handlers/base.py", line 29, in load_middleware
    mod = __import__(mw_module, {}, {}, [''])

  File "/srv/code/python/lib/python2.4/site-packages/django/contrib/
sessions/middleware.py", line 2, in ?
    from django.contrib.sessions.models import Session

  File "/srv/code/python/lib/python2.4/site-packages/django/contrib/
sessions/models.py", line 51, in ?
    class Session(models.Model):

  File "/srv/code/python/lib/python2.4/site-packages/django/db/models/
base.py", line 30, in __new__
    new_class.add_to_class('_meta', Options(attrs.pop('Meta', None)))

  File "/srv/code/python/lib/python2.4/site-packages/django/db/models/
base.py", line 169, in add_to_class
    value.contribute_to_class(cls, name)

  File "/srv/code/python/lib/python2.4/site-packages/django/db/models/
options.py", line 53, in contribute_to_class
    setattr(self, 'verbose_name_plural',
meta_attrs.pop('verbose_name_plural', self.verbose_name + 's'))

  File "/srv/code/python/lib/python2.4/site-packages/django/utils/
functional.py", line 42, in __wrapper__
    res = self.__func(*self.__args, **self.__kw)

  File "/srv/code/python/lib/python2.4/site-packages/django/utils/
translation/trans_real.py", line 255, in gettext
    _default = translation(settings.LANGUAGE_CODE)

  File "/srv/code/python/lib/python2.4/site-packages/django/utils/
translation/trans_real.py", line 184, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)

 File "/srv/code/python/lib/python2.4/site-packages/django/utils/
translation/trans_real.py", line 167, in _fetch
    app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])

AttributeError: 'module' object has no attribute 'frontend'
<<<<<

frontend is a folder in the syslog folder created by django-admin.py
startapp frontend.

I still can't figure out why it works on embedded server and not in
apache.

Robert

On Jul 30, 3:36 pm, Anthony DROGON <[EMAIL PROTECTED]>
wrote:
> Hi Robert,
>
> I had quite the same problem, it's been solved by setting
> DJANGO_SETTINGS_MODULE to "settings" instead of "syslog.settings" in
> <Location>.
>
> My current apache2.conf file sets handler to "python-program" instead of
> "mod_python", you can also try it that way.
>
> Hope this helps,
> Anthony.
>


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to