====================================================================== ERROR: test_client_start (usertests.tests.DatabaseTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/schmitch/PycharmProjects/django2/django/db/backends/utils.py", line 63, in execute return self.cursor.execute(sql, params) psycopg2.IntegrityError: duplicate key value violates unique constraint "django_content_type_app_label_model_key" DETAIL: Key (app_label, model)=(admin, logentry) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/schmitch/PycharmProjects/django2/django/test/testcases.py", line 182, in __call__ self._post_teardown() File "/Users/schmitch/PycharmProjects/django2/django/test/testcases.py", line 831, in _post_teardown self._fixture_teardown() File "/Users/schmitch/PycharmProjects/django2/django/test/testcases.py", line 866, in _fixture_teardown connections[db_name]._test_serialized_contents File "/Users/schmitch/PycharmProjects/django2/django/db/backends/creation.py", line 412, in deserialize_db_from_string obj.save() File "/Users/schmitch/PycharmProjects/django2/django/core/serializers/base.py", line 173, in save models.Model.save_base(self.object, using=using, raw=True) File "/Users/schmitch/PycharmProjects/django2/django/db/models/base.py", line 622, in save_base updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/Users/schmitch/PycharmProjects/django2/django/db/models/base.py", line 703, in _save_table result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) File "/Users/schmitch/PycharmProjects/django2/django/db/models/base.py", line 736, in _do_insert using=using, raw=raw) File "/Users/schmitch/PycharmProjects/django2/django/db/models/manager.py", line 80, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/Users/schmitch/PycharmProjects/django2/django/db/models/query.py", line 915, in _insert return query.get_compiler(using=using).execute_sql(return_id) File "/Users/schmitch/PycharmProjects/django2/django/db/models/sql/compiler.py", line 919, in execute_sql cursor.execute(sql, params) File "/Users/schmitch/PycharmProjects/django2/django/db/backends/utils.py", line 63, in execute return self.cursor.execute(sql, params) File "/Users/schmitch/PycharmProjects/django2/django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/Users/schmitch/PycharmProjects/django2/django/utils/six.py", line 549, in reraise raise value.with_traceback(tb) File "/Users/schmitch/PycharmProjects/django2/django/db/backends/utils.py", line 63, in execute return self.cursor.execute(sql, params) django.db.utils.IntegrityError: duplicate key value violates unique constraint "django_content_type_app_label_model_key" DETAIL: Key (app_label, model)=(admin, logentry) already exists.