catalogs_update.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:newco-legacy 作者: blaze33 项目源码 文件源码
def main():
    if settings.DEBUG:
        pass

    try:
        from affiliation.models import AffiliationItem, Store
        from affiliation.decathlon.tools import decathlon_db_processing
    except ImportError:
        sys.stdout.write("Imports failed.\n")
    else:
        store = Store.objects.get_store("Decathlon")
        log_path = settings.PROJECT_ROOT + "/decathlon_db_log.txt"
        errors = decathlon_db_processing(AffiliationItem, store, log_path)

        if len(errors) != 0:
            sys.stdout.writelines(errors)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号