Hi,

I deployed my django projects in virtual environnement with apache and
mod_wsgi 10 monthes ago.

I had not any problem with them but since three days, I can't get my
websites under django, apache and wsgi.

In the apache var logs, I have this errors when I restart apache and I
try to get the url :

[Fri Jan 13 22:44:43 2012] [error] Exception KeyError:
KeyError(-1212032368,) in <module 'threading' from '/usr/lib/python2.6/
threading.pyc'> ignored
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75] mod_wsgi
(pid=13452): Exception occurred processing WSGI script '/www/python-
envs/myproject/django.wsgi'.
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75] Traceback
(most recent call last):
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75]   File "/usr/
lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in
__call__
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75]
self.load_middleware()
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75]   File "/usr/
lib/pymodules/python2.6/django/core/handlers/base.py", line 42, in
load_middleware
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75]     raise
exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"'
% (mw_module, e)
[Fri Jan 13 22:56:44 2012] [error] [client 123.126.50.75]
ImproperlyConfigured: Error importing middleware
django.middleware.csrf: "No module named csrf"

I don't understand why because I didn't change anything in apache or
in the django.wsgi files. I just restart my cloud server. In the same
time, a php project running with apache is ok.

Any idea ?

Thanks for your answers.

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

Reply via email to