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.
精彩评论