Monday, May 13, 2013

Re: How to Handle XML and CSV processing in Django


On Tue, May 14, 2013 at 1:38 PM, Muhammad Ali <mgmali12@gmail.com> wrote:
Russell,

Thank you very much for the insight.

This was very helpful. :)

As for the "Django-specific format" that you mentioned, what are you referring to here?

If you've got a tutorial project, try running:

./manage.py dumpdata auth --format=json --indent=2

That will dump the contents of the contrib.auth app in the database (i.e., all your users and permissions) in the accepted JSON format.

For more details, look at the documentation for the loaddata [1] and dumpdata [2] management commands, as well as the documentation about serializers [3]:


Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate