1
我正在使用通過互聯網發佈一些API(肥皂)。 我想用的nginx + uwsgi但我遇到了麻煩: 我得到這個輸出瀏覽由uwsgi二進制提供的頁面:ladon + uwsgi:無法加載應用程序
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ladon/server/wsgi_application.py", line 332, in __call__
self.import_services(self.service_list)
File "/usr/local/lib/python2.7/dist-packages/ladon/server/wsgi_application.py", line 288, in import_services
__import__(service)
ImportError: No module named serverL
我的CLI是:
uwsgi -s 127.0.0.1:7777 --logto ~/uwsgi.log --wsgi-file /path/scripts/handler.py
handler.py包含:
from ladon.server.wsgi import LadonWSGIApplication
from os.path import abspath,dirname
application = LadonWSGIApplication('serverL','/path/script/src')
和我的樹在/路徑/腳本:
.
├── handler.py
├── src
│ ├── serverL.py
在此先感謝