Debian Mod_wsgi : No Module Named 'psycopg2._psycopg'
I am struggling in making Django run with mod_wsgi. I tried to follow recommendations here but it did not work. The server is a Debian : $ lsb_release -da No LSB modules are av
Solution 1:
The answer was in the question. Thanks to the mod_wsgi Google Group, it's been confirmed that mod_wsgi should be installed globally using Python 3.5 (which my venv is based on): https://groups.google.com/forum/#!topic/modwsgi/UCgZG9amvv0
So I downloaded lastest mod_wsgi sources and configured them with my Python 3.5. Boom, problem solved!
Note: It means that every Python based site must use a virtualenv based on Python 3.5, e.g. the same Python used to configure mod_wsgi. If you have to serve sites with different Python versions then I guess you would need multiple Apache installations/instances.
Post a Comment for "Debian Mod_wsgi : No Module Named 'psycopg2._psycopg'"