[Answer]-Getting duplicate entry error Django

1👍

You can try this :
Send something different every-time for username field too , because looking at your save query , you only insert email So I think username field must be blank . So first time it insert the first row but 2nd time it doesn’t insert and gives the duplicate entry error.

Leave a comment