Deploying django on Apache in macOS


I have created a simple application using django. I have deployed my application on apache in MacOS. I am using cx_Oracle version 8.2.1. On doing a http request on localhost/emp i am getting

cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: “dlopen(/Users/apple/Downloads/instantclient_19_8/libclntsh.dylib, 0x0001): tried: ‘/Users/apple/Downloads/instantclient_19_8/libclntsh.dylib’ (no such file)”. See cx_Oracle 8 Installation — cx_Oracle 8.3.0 documentation for help, referer:

in my error logs. But the application is ruuning fine when i am using dev server. I have used DYLD_LIB_PATH for setting instantclient. How to reslove this issue for my apache deployment.


Are you using MacOS as server OS, or you are only making development in MacOS?

I am making development on my mac. Just want to deploy my application on Apache.

But you are testing your deployment in MacOs?

Yes, I am testing it on mac.

Well, I think that’s the root of the problem, you should test your deployment in a VM with the target OS.