You need to add it to sys.path in WSGI script file. The PYTHONPATH in .bashrc of your personal account isn't used by Apache/mod_wsgi.
Graham On Sep 15, 10:46 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com> wrote: > On Sep 15, 11:15 am, Colin Bean <ccb...@gmail.com> wrote:> Have you tried the > steps described > here:http://code.google.com/p/modwsgi/wiki/VirtualEnvironments? > > now i try this i found error : > raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: > No module named MySQLdb > > But its MySQLdb installed. > but its not on python path. i read this > posthttp://groups.google.com/group/django-users/browse_thread/thread/5c90... > > In this post i found the solution, but not understand this > { > export PYTHONPATH=/dir/where/mysqldb/lives:$PYTHONPATH > > Placing that in the file '.bashrc' in your home directory will cause > it to be set automatically for you any time you open up a shell. > > } > > me add this line in .bashrc file like > export PYTHONPATH=/dir/where/mysqldb/lives:$/home/jagdeep/CMS/ENV/bin/ > python > > Is this correct? > my python path :/home/jagdeep/CMS/ENV/bin/python -- 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.