Hi!

I have a Django model for a dynamic application whose questions depend on 
data previously provided by the user. I also have a Django model for each 
question/answer in this application. There is a front-end that calls the 
back-end to "auto-save" whenever a question is answered.

When the user provides their website, I will create a async task that will 
call an external API that will perform a security check on the user's 
website, looking for some vulnerabilities, and save the result back to the 
application model. I can create this async task in the application answer 
model's save() method or register a function to be called on the post_save 
signal. 

What are the pros/cons of using one or the another approach? At first 
sight, using save() seems simpler to me.

Regards,
Alan

-- 
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/e47a6396-5245-403d-a496-e37a04e7e05dn%40googlegroups.com.

Reply via email to