Package: libapache2-mod-python Version: 3.3.1-2 It shows random site from two available virtualhosts.
Config : <Location "/"> PythonPath "['/path/to/src'] + sys.path" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE twistedlogs.settings PythonInterpreter main_interpreter PythonDebug On </Location> with "PythonInterpreter twistedlogs" on first virtualhost and "PythonInterpreter myAnotherproject" it throws exception : {{{ MOD_PYTHON ERROR ProcessId: 3435 Interpreter: 'twistedlogs' ServerName: '80.93.122.37' DocumentRoot: '/home/httpd/tw' URI: '/' Location: '/' Directory: None Filename: '/home/httpd/tw/' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg) File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 188, in handler return ModPythonHandler()(req) File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 161, in __call__ response = self.get_response(request) File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 130, in get_response callback, param_dict = resolver.resolve500() File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 275, in resolve500 return self._resolve_special('500') File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 264, in _resolve_special callback = getattr(self.urlconf_module, 'handler%s' % view_type) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 255, in _get_urlconf_module raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e) ImproperlyConfigured: Error while importing URLconf 'twistedlogs.urls': class.__dict__ not accessible in restricted mode }}} P.S.The trick with """PythonInterpreter main_interpreter""" taken from here: http://www.modpython.org/pipermail/mod_python/2005-May/017980.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]