Re: management.call_command dumpdata does not return datastring

2007-10-26 Thread Ulf Kronman
Hi Jacob, > The mangement modules are designed for use from the command-line, so > this is expected behavior. OK. But the peculiar thing is that I'm almost certain that I had it working before (2 months ago) with the command: str_datadump = management.call_command('dumpdata', str_application, fo

Re: management.call_command dumpdata does not return datastring

2007-10-25 Thread Jacob Kaplan-Moss
Hi Ulf -- The mangement modules are designed for use from the command-line, so this is expected behavior. If you're looking to convert data into a string, you'll want to use the serialization APIs directly, see http://www.djangoproject.com/documentation/serialization/. Jacob --~--~-~--~

management.call_command dumpdata does not return datastring

2007-10-25 Thread Ulf Kronman
Hi all, I've been using the Django management module to output data from my database in JSON format. This summer I asked some questions about the changes in the call management.dump_data to management.call_command('dumpdata',) and got good help and got it working. Now that I try to run my databas