We have a CSV file that we are importing into a Django application, and then creating the appropriate models and relationships.
At the first page, we have a file upload form where the user selects a file.
We then parse the file, and return a second page showing them what would be created, any validation errors etc.
The user can then decide whether to proceed or not (or possibly to correct any areas on-screen).
What would be the best way of storing the temporary interim models, before it actually hits the database proper?
The CSV file will be fairly big, possibly around 200 Kb in size, and create several hundred models.
Should I store this in the database somewhere, and label those models "temporary"? It seems a bit heavy just for a confirm, and I'm not sure if it's appropriate use of the database. Or is there some way we could store it in Django sessions? Or any other way to do it?
Cheers,
Victor
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/zBHlA9Q2t7MJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment