I can't print a queryset value.

2018-01-02 Thread karlnaflnest
I am trying to pass a queryset value as an argument to a method but it won't proceed; it shows no error. And I tried printing it like this: for id in Review.objects.values_list('id', flat=True): print("ID: " + id) Output: 1 However, it worked and looped when I changed it to this: for id in Re

I'm having an error UNIQUE constraint failed: seleniumapp_comment.id

2017-12-05 Thread karlnaflnest
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