Questions tagged «dumpdata»

8
Django转储单个模型的数据?
我可以dumpdata在Django中执行中仅对单个模型执行,而不对整个应用程序执行,如果可以,如何执行? 对于一个应用程序,它将是: python manage.py dumpdata myapp 但是,我希望转储某些特定的模型,例如“ myapp.mymodel”。原因是,在我不希望转储的同一应用程序中,我有300万条巨大的记录数据集。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.