You are trying to save the object twice, and telling it to force the second
time, causing the error. objects.create() implicitly calls .save() When you
then try save(force_insert=True) it hits a unique error.
If you want to have the comment that is being created/saved for later use
you should do
I'm currently doing a web scraper app using selenium. It is supposed to
scrape several reviews, but it won't proceed because of the error. Any
help would be greatly appreciated.
Error:
UNIQUE constraint failed: seleniumapp_comment.id
models.py:
class ReviewWebsite(models.Model):
website_n
2 matches
Mail list logo