This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://gist.github.com/int-ua/b2bcc4bea8227ab14a437900ff424723 | |
# With a few fixes to get it working for Django 3.2 | |
# (may or may not work for new versions too) | |
# | |
# Example usage: python manage.py import_file fixtures/categories.csv \ | |
# --resource_class SearchApp.admin.CategoryResource \ | |
# --model_name SearchApp.models.Category | |
from __future__ import unicode_literals | |
import mimetypes |