Hello everyone,

I keep on getting this error with mod_python:

*RuntimeError: class.__dict__ not accessible in restricted mode

*I read that I have to set :

PythonInterpreter main_interpreter

in my httpd.conf, but this doesn't seam to work. Here is my httpd.conf :


<VirtualHost *>
     ServerName srv1.myapp1.com

     <location "/myapp1">
          SetHandler mod_python
          PythonInterpreter main_interpreter
          PythonHandler django.core.handlers.modpython
          PythonDebug Off
          PythonAutoReload Off
          SetEnv DJANGO_SETTINGS_MODULE myapp1.settings
          PythonPath "['/var/www/mysite1', 
'/var/lib/python-support/python2.5/django'] + sys.path"
     </location>
    
</VirtualHost>


<VirtualHost *>
     ServerName srv2.myapp2.com
    
     <location "/myapp2">
         SetHandler mod_python
         PythonInterpreter main_interpreter2
         PythonHandler django.core.handlers.modpython
         PythonDebug Off
         PythonAutoReload Off
         SetEnv DJANGO_SETTINGS_MODULE myapp2.settings
         PythonPath "['/var/www/mysite2', 
'/var/lib/python-support/python2.5/django'] + sys.path"
     </location>
    
</VirtualHost>

does someone get this? Thank you, Gabriel

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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