#9717: manage.py flush raises error if there are unsynchronized applications -----------------------------+---------------------------------------------- Reporter: russellm | Owner: nobody Status: new | Milestone: Component: django-admin.py | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- If an application has been added to INSTALLED_APPS, but has not yet been synchronized, ./manage.py flush will raise a "no such table:" error.
How to reproduce: 1. Create a new project with a bunch of apps 2. Call manage.py syncdb 3. Add some new apps to INSTALLED_APPS (e.g., add contrib.admin to the list) 4. Call manage.py flush This will raise an error because the tables for contrib.admin haven't been created, but the flush command will try to delete those tables. The solution here will be to check the tables that already exist in the database before attempting to destroy them. Syncdb already does a version of this, checking the tables that already exist before trying to create; the same logic needs to be applied to flush. -- Ticket URL: <http://code.djangoproject.com/ticket/9717> 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 -~----------~----~----~----~------~----~------~--~---
