Changes between Initial Version and Version 6 of Ticket #16088


Ignore:
Timestamp:
Jun 26, 2011, 5:31:44 AM (13 years ago)
Author:
Łukasz Rekucki
Comment:

Fixed formatting (please use preview!).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16088

    • Property Status newreopened
    • Property UI/UX unset
  • Ticket #16088 – Description

    initial v6  
    11I have a multi-database setup:
    22
     3{{{
    34DATABASES = {
    45    'default': {
     
    3435}
    3536
    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}}}
    3738
     39I 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:
    3840
     41{{{
    3942Traceback (most recent call last):
    4043  File "./27.py", line 11, in <module>
     
    9194    raise errorclass, errorvalue
    9295django.db.utils.IntegrityError: (1062, "Duplicate entry 'tools-station' for key 'app_label'")
    93 
     96}}}
    9497
    9598after some debugging i've found that the
     99{{{
    96100    def update_contenttypes(app, created_models, verbosity=2, **kwargs):
     101}}}
    97102method 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.
    98103
Back to Top