Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

遇到和之前几位一样的MONGODB后缀问题 #86

Open
wwfgxnyi opened this issue May 14, 2020 · 1 comment
Open

遇到和之前几位一样的MONGODB后缀问题 #86

wwfgxnyi opened this issue May 14, 2020 · 1 comment

Comments

@wwfgxnyi
Copy link

Traceback (most recent call last):
File "scheduled_task.py", line 18, in
from owllook.spiders import QidianRankingSpider, ZHRankingSpider
File "/root/owllook/owllook/spiders/init.py", line 1, in
from .qidian_ranking import QidianRankingSpider
File "/root/owllook/owllook/spiders/qidian_ranking.py", line 8, in
from owllook.database.mongodb import MotorBaseOld
File "/root/owllook/owllook/database/mongodb/init.py", line 1, in
from .motorbase import MotorBase, MotorBaseOld, PyMongoDb
File "/root/owllook/owllook/database/mongodb/motorbase.py", line 11, in
@singleton
File "/root/owllook/owllook/database/mongodb/motorbase.py", line 19, in MotorBase
MONGODB = CONFIG.MONGODB
AttributeError: type object 'Config' has no attribute 'MONGODB'

false改了,没用

@cnmstudio
Copy link

在config目录下建一个proconfig的文件将devconfig.py的内容给复制进去,就行了,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants