class ProductItemPipeline(object):

    def process_item(self, item, spider):
        if isinstance(item, ProductItem):
            item['cover_photo'] = item['files'][0]['path']
model, created = ProductItem.get_or_create(product_company=item[
    'product_company'], barcode=item['bar_code'], defaults={'Other_field1':
    value1, 'Other_field2': value2})
if created:
    for image in item['files']:
        imageItem = ProductImageItem(image=image['path'], product=item.instance
            )
Отношения Django со Scrapy, как сохраняются элементы?