On 23-08-11 00:37, Jim wrote:
This probably has been discussed many times, but I still can't find any
solution yet. Basically, it turns out that python can load MySQLdb just
fine, but Apache can't load MySQLdb from the wsgi script.


- Does apache use the virtualenv's environment?

- Mod_wsgi: does that use the correct python version? mod_wsgi normally uses /usr/bin/python (python 2.5 or 3.2 whatever) and you might have used /usr/bin/python2.7.

- Can the apache process find the mysql libraries? Are the environement variables different? Try printing "os.environ" from your .wsgi script for instance.

Just some brainstorming.


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.

Reply via email to