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)
评论列表
文章目录