Django has the logging feature. You definitely want to log success or errors in the second option while importing data into the database.
See Django logging system https://docs.djangoproject.com/en/3.0/topics/logging/ -- 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/b71bf367-b7a3-4651-b6dd-ac2cf3161e0e%40googlegroups.com.