0

For my Django app I have a request page that allows users to make multiple requests(like an order form) in a single submission. If the user has many requests I don't want them to fill about the forms one by one.

I currently have django-import-export installed for the admin. Is there a way to allow the user to import a csv file to the database? If not, what would be a good solution to make the form process more user friendly?

quanuw
  • 41
  • 1
  • 1
  • 10
  • `django-import-export` allows importing CSV, doesn't it? – Ernest Aug 05 '15 at 02:43
  • It does, but I only got it working for the admin. I am unsure of how to allow users to import a csv. – quanuw Aug 05 '15 at 02:44
  • Ah, sorry, I misunderstood you. Did you try [`import_data`](https://django-import-export.readthedocs.org/en/latest/import_workflow.html#import-data-method-workflow) method? – Ernest Aug 05 '15 at 03:04
  • Also, [_how to import csv data into django models_](http://stackoverflow.com/questions/2459979/how-to-import-csv-data-into-django-models) and [_Import csv data into database in Django Admin_](http://stackoverflow.com/questions/3974620/import-csv-data-into-database-in-django-admin) questions might be helpful. – Ernest Aug 05 '15 at 03:08
  • Thanks for the links. Have you done csv imports yourself? Care to explain? – quanuw Aug 05 '15 at 03:17
  • I have done it for admins only. – Ernest Aug 05 '15 at 04:26

0 Answers0