#11828: Testing w/ contenttypes with syncdb causes an error django_content_types table does not exist -------------------------------------+-------------------------------------- Reporter: [email protected] | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: soc2009/multidb Keywords: | Stage: Unreviewed Has_patch: 0 | -------------------------------------+-------------------------------------- A quick way to see the error (which is obviously wrong)
1. Add contenttypes to your installed apps 1. Create a model on second db (we'll call it 'other_db') 1. In django/test/simple.py run_tests() make the alias iteration order (you can hardcode this) to be `for alias in ordered:` with `for alias in ['other_db', 'default'] That will show that the db creation order is important. The other harder way to do this, is to find something that lets you iterate over a dictionaries items where whatever your other alias hashes "before" the 'default' one does. -- Ticket URL: <http://code.djangoproject.com/ticket/11828> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
