Changes between Initial Version and Version 6 of Ticket #16088
- Timestamp:
- Jun 26, 2011, 5:31:44 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16088
- Property Status new → reopened
- Property UI/UX unset
-
Ticket #16088 – Description
initial v6 1 1 I have a multi-database setup: 2 2 3 {{{ 3 4 DATABASES = { 4 5 'default': { … … 34 35 } 35 36 36 i have 2 routers, one handles the master/slave and one handles the 2 "data" database station and catalog. they run fine on production, but when we try to run our unit tests i get the following stack trace: 37 }}} 37 38 39 I have 2 routers, one handles the master/slave and one handles the 2 "data" database station and catalog. they run fine on production, but when we try to run our unit tests i get the following stack trace: 38 40 41 {{{ 39 42 Traceback (most recent call last): 40 43 File "./27.py", line 11, in <module> … … 91 94 raise errorclass, errorvalue 92 95 django.db.utils.IntegrityError: (1062, "Duplicate entry 'tools-station' for key 'app_label'") 93 96 }}} 94 97 95 98 after some debugging i've found that the 99 {{{ 96 100 def update_contenttypes(app, created_models, verbosity=2, **kwargs): 101 }}} 97 102 method looks up the tools-station content type in the station database, doesn't find it, and then tries to write it to the default database, where it already exists. 98 103