无法在Django和Nginx上文件共享库

无法在Django和Nginx上文件共享库,django,nginx,ctypes,shared,Django,Nginx,Ctypes,Shared,我对调用共享库的django+nginx项目有问题。我不知道要调用的库文件的路径。我试过所有的案子。我不知道我必须将库文件放在服务器上的什么位置才能正确调用 这里是: OSError at /list/ media/documents/lib.so: cannot open shared object file: No such file or directory Request Method: POST Request URL: http : / /127 .0.0.1:8000/li

我对调用共享库的django+nginx项目有问题。我不知道要调用的库文件的路径。我试过所有的案子。我不知道我必须将库文件放在服务器上的什么位置才能正确调用

这里是:

OSError at /list/

media/documents/lib.so: cannot open shared object file: No such file or directory
Request Method: POST
Request URL:    http : / /127 .0.0.1:8000/list/
Django Version: 1.4
Exception Type: OSError
Exception Value:    

media/documents/lib.so: cannot open shared object file: No such file or directory
Exception Location: /usr/lib/python2.7/ctypes/__init__.py in __init__, line 365
Python Executable:  /usr/bin/python2.7
Python Version: 2.7.3
Python Path:    

['/home/ht/workspace/myproject/src',
 '/home/ht/workspace/myproject/src',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
Server time:    Fri, 27 Jul 2012 08:49:53 -0500
张贴完整的stacktrace,您已经回答了4个您尚未接受的问题。如果你不接受别人给你的答案,你将很难找到帮助。