On 8/29/07, Ulf Kronman <[EMAIL PROTECTED]> wrote: > > I've been using some borrowed code snippets to make a script that > saves data from my PostgreSQL database, and now the script has stopped > working since I last updated the Django code. > > This is how I used to do it: > > from django.core import management > str_kth_data = management.dump_data(['kth'], format='json', indent=2)
Rather than call the command directly, you now go through the management interface and invoke the command by name: >>> management.call_command('dumpdata', 'kth', format='json', indent=2) This will ultimately allow end users to register their own commands with the management application. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---