gaviscon_man
gaviscon_man

Reputation: 993

Django uploading and importing a file

I have a Django app that is basically a web front end on a database.

Every now and then, users upload files containing perhaps 1000s of records. These records will need to be parsed out of the file, processed, and used to create new records or update existing records in the database. I'm just wondering what is the better approach for processing the uploaded file:

Upvotes: 0

Views: 211

Answers (1)

Celery seems to be pretty hot these days too, you should definitely look into this:

https://github.com/ask/django-celery

http://celeryproject.org/

enter image description here

Send an email when done, or have the front end poll for results every X seconds after submission. "Are we there yet?" "Are we there yet?"


I'd like to know too a simple, safe way to start a thread that writes to the db.

Upvotes: 2

Related Questions