manager.py runfcgi host = 127.0.0.1 port = 9992 daemonize = false
然后,当我启动nginx作为网络服务器时,我收到错误。
settings.py
from lib import rpc
rpc.backend = ARPCClient({xxxxxx})
asite / views.py
from lib import rpc
AttributeError at /
'rpc' object has no attribute 'backend'
答案 0 :(得分:1)
您似乎没有设置的导入语句
from settings import *
或者用rpc.backend代替*,如果你只需要那个。