On 13-01-12 23:09, polar wrote:
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.
Probably something changed in your OS. Two common ones:
- You recently installed Django globally and now your project finds the
(older) global django before it finds the one in your project.
- Your OS's default python version changed and you get different libraries.
I'd try looking at /usr/lib/pymodules/python2.6/django and figure out
which Django version that is. And if python 2.6 is the same one as was
running before.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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.