How do I handle exceptions with Django objects.bulk_create()
<p>I am using <code>bulk_create</code>to create objects of a model. Whenever an exception is raised, how do I handle it?</p>

<pre><code>aList = [
    Student(name="Jason"),
    Student(name="Mark"),
    Student(name="Tom"),
    Student(name="Jason"),
    Student(name="Tom"),
]

Student.objects.bulk_create(aList)
</code></pre>

<p>as the model has field <code>name</code> that is <strong><code>unique=True</code></strong>,  I have to process the inputs as the exception is raised. How do I handle exceptions one by one.</p>

<p>This don't work as intended,</p>

<pre><code>try:
    # bulk_create
except:
    # handlers
</code></pre>

<p>as the exception is raised, the <code>bulk_create</code> process is terminated.</p>

<p>PS. I am looking forward for the <strong><code>bulk_create</code></strong>. <strong>no loops with <code>create</code> or <code>update_or_create</code> or <code>get_or_create</code></strong></p>