#3905: app name incorrectly reported in syncdb output
----------------------------------+-----------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian        
     Status:  new                 |            Component:  Core framework
    Version:  SVN                 |           Resolution:                
   Keywords:  syncdb              |                Stage:  Unreviewed    
  Has_patch:  1                   |           Needs_docs:  0             
Needs_tests:  0                   |   Needs_better_patch:  0             
----------------------------------+-----------------------------------------
Comment (by [EMAIL PROTECTED]):

 Replying to [comment:1 mtredinnick]:
 > Under what circumstances does this fail? Can you describe a simple
 example?
 
 Sorry about the terseness of the original message. It was such a simple
 fix, I didn't go into much detail. Apologies.
 
 The output is incorrect whenever a custom SQL file exists for an
 application which isn't the last one listed in INSTALLED_APPS. Try
 creating a site with two apps, and create an sql file for the first one in
 the INSTALLED_APPS list. You'll see the output from syncdb shows the
 application name of the second app instead of the first.
 
 It's easiest to see by just looking at the code--in the syncdb function,
 there are several loops through models.get_apps(). The first line after
 all but one sets the app_name variable to the current application name for
 use in print statements. The loop for installing custom SQL uses the
 app_name variable, but never updates it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3905#comment:2>
Django Code <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to