Django dumpdata django.contrib.auth
11,967
Solution was much more easy than a thought. Just run
python manage.py dumpdata auth
Related videos on Youtube
Author by
imkost
Updated on September 16, 2022Comments
-
imkost over 1 year
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.
-
singer about 11 yearsOther management commands are working?
-
imkost about 11 years@singer, yes,
python manage.py dumpdata myapp > 'myapp.json
works fine -
singer about 11 yearsAre you using virtualenv? django.contrib.auth is in INSTALLED_APPS, sorry for obvious question just to check.
-
singer about 11 yearsWhat OS are you using?
-
imkost about 11 years@singer, yes,
django.contrib.auth
is inINSTALLED_APPS
. OS is Ubuntu -
imkost about 11 yearsAbout virtualenv. I don't know for sure, but I guess I use it. I can use apps from my python dir
-
-
imkost about 11 yearsHa-ha) so simple. Thank you very much!
-
neosergio over 7 yearsIf you want just user, you can run:
python manage.py dumpdata auth.user