#7052: auth  fixture fails to import when running test server
------------------------------------+---------------------------------------
          Reporter:  jb0t           |         Owner:  nobody                    
                 
            Status:  new            |     Milestone:                            
                 
         Component:  Serialization  |       Version:  SVN                       
                 
        Resolution:                 |      Keywords:  auth_permission 
auth_content fixture import
             Stage:  Accepted       |     Has_patch:  0                         
                 
        Needs_docs:  0              |   Needs_tests:  0                         
                 
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by adamnelson):

 Here's the ticket regarding the lack of error handling in
 django_extensions runscript:

 http://code.google.com/p/django-command-extensions/issues/detail?id=93

 Note that the traceback in comment 2 is only visible when manually running
 the Python script line by line - not when using the traceback tag or when
 running runscript generally.

 As for continuing after data errors, I think it's reasonable to at least
 have an option to do that.  INSERT IGNORE or REPLACE INTO would be the
 relevant commands in MySQL.  Postgres has no equivalent except DELETE and
 then INSERT.  A duplicate key error really isn't as bad as a table does
 not exist error or something like that.  Even so, having the option to
 continue a script through even significant errors would be valuable for
 development based on real data sets, as long as the errors are reported.
 Keep in mind these aren't syntax errors or fatal errors, but data errors
 that could be handled with other methods - if there were an option to get
 through this part.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7052#comment:26>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to