Friday, November 27, 2009

RuntimeError: class.__dict__ not accessible in restricted mode

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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate