Hey, you can upload the file through a form, and in the backend, you can store the file in temporary memory with the BytesIO method and then read it with CSV library and then loop through row and then use bulk_create
On Monday, August 9, 2021 at 7:07:16 AM UTC+5:30 bi...@deltaops.tech wrote: > Hi, I'd like to create a view in a different app that will allow for > someone to upload a csv of users. I already know how to use bulk_create() > and CSVs for other things but I'm not sure how to do this with the custom > auth model. > > Any advice would be greatly appreciated. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9c8b95b2-0710-4e04-8aec-6dc7bd38d77fn%40googlegroups.com.