Django dumpdata django.contrib.auth

imkost picture imkost · Apr 21, 2013 · Viewed 10.8k times · Source

I want dump data of django.contrib.auth app.

I've tried:

>> python manage.py dumpdata django.contrib.auth > 'django.contrib.admin.json'
Error: Unknown application: django.contrib.auth
>> python manage.py dumpdata 'django.contrib.auth' > 'django.contrib.admin.json'
Error: Unknown application: django.contrib.auth

Nothing works. Need your help.

Answer

singer picture singer · Apr 21, 2013

Solution was much more easy than a thought. Just run

python manage.py dumpdata auth