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

脑壳疼,最后一步不行 #77

Open
yonheng opened this issue Jan 17, 2020 · 6 comments
Open

脑壳疼,最后一步不行 #77

yonheng opened this issue Jan 17, 2020 · 6 comments

Comments

@yonheng
Copy link

yonheng commented Jan 17, 2020

File "server.py", line 12, in
from owllook.views import admin_bp, api_bp, except_bp, md_bp, novels_bp, operate_bp
File "/root/owllook/owllook/views/init.py", line 1, in
from .admin_blueprint import admin_bp
File "/root/owllook/owllook/views/admin_blueprint.py", line 8, in
from owllook.database.mongodb import MotorBase
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'

@howie6879
Copy link
Owner

设定一下启动模式

@yonheng
Copy link
Author

yonheng commented Jan 18, 2020

怎么设置

@howie6879
Copy link
Owner

怎么设置

config.py有

你可以详细看看readme

@yq-xfl
Copy link

yq-xfl commented Apr 17, 2020

请问解决了吗 ,遇到同样问题

@lihaha0503
Copy link

怎么设置

config.py有

你可以详细看看readme

那些有呀,没有找到

@ma0shu
Copy link

ma0shu commented Feb 3, 2021

=====Edit=====
已解决。https://github.com/howie6879/owllook/search?q=os.environ%5B%27MODE%27%5D+%3D+%27PRO%27 注释掉这里面所有文件的 os.environ['MODE'] = 'PRO'

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

5 participants