开发者

Django settings don't load on other views.py

manager.py runfcgi host=127.0.0.1 port=9992 daemonize=false

then, when i start nginx as webserver, i get an error.

settings.py

from lib import rpc
rpc.backend = ARPCClient({xxxxxx})

asite/views.py

from lib import rpc

AttributeError at /
    'rpc' object has no开发者_StackOverflow attribute 'backend'


it seems that you don't have the import statement for the settings

from settings import *

or substitute * with rpc.backend if you need only that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜