On Tue, May 14, 2013 at 1:38 PM, Muhammad Ali <mgmal...@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]:

[1]
https://docs.djangoproject.com/en/1.5/ref/django-admin/#loaddata-fixture-fixture
[2]
https://docs.djangoproject.com/en/1.5/ref/django-admin/#django-admin-dumpdata
[3] https://docs.djangoproject.com/en/1.5/topics/serialization/

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+unsubscr...@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.


Reply via email to