[Answered ]-Threaded application + IntegrityError

2👍

Just to make sure, you’re using strings for primary keys if I understand correctly?

AttributeError: ‘NoneType’ object has no attribute ‘cursor’

This means there’s an error in some Python code. Have you tried using another version or revision of Django or searching the Django trac for your bug? It isn’t so uncommon to be affected by some bug if you’re using version from trunk.

As an alternative you could also try to deploy Django using multiple processes instead of multiple threads if that’s an option.

However, you might still want to find out why you’re getting duplicate requests as it might uncover some other bug.

Leave a comment