开发者

Django settings don't load on other views.py

开发者 https://www.devze.com 2023-03-21 02:27 出处:网络
manager.py runfcgi host=127.0.0.1 port=9992 daemonize=false then, when i start nginx as webserver, i get an error.

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

精彩评论

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