Django Refresh database until end of transaction
You can try use websocket. Socket is listening and wait on datas. Django the use form django-channels
I have a long task, that is adding many records to a database table.
In the table, there is a field called "end". This field will be empty until the task is done. As soon as the task is done, I will write a value in the "end" field.
Can I have an HTML page, that is refreshing the page every 5 seconds with the items from the table until the field "end" has a value?
Does somebody have an example script for this?