[Fixed]-Django (mod_wsgi) Exception occurred processing WSGI script

1👍

The problem was due to a path issue (thanks to Graham pointing out how to check the bitness and location of psycopg2.so). My application uses VirtualEnv. For some reasons, I did not set up VirtualEnv properly the first time. Therefore, all the package that was installed through pip stayed in the OS’s python path and not VirtualEnv.

The solution was to remove all the packages installed on the OS’s Python path. Then, recreate a new VirtualEnv and do the typical pip install. Make sure that all the packages are installed in the VirtualEnv path. Once I did that, everything worked beautifully.

Leave a comment