资 源 简 介
Description
This tool is used for dump and restore database of Django. And it can also support some simple situations for Model changes, so it can also be used in importing data after the migration of Model.
It includes: dump and restore.
Dump
Command Line:
python db_dump.py [-svdh] [--settings] dump [applist]
If applist is ignored,then it means that all app will be dumped. applist can be one or more app name.
Description of options:
-s Output will displayed in console, default is writing into file
-v Display execution infomation, default is does not display
-d Directory of output, default is datadir in current directory. If the path is not existed, it"ll be created automatically.
-h Display help information.
--settings settings model, default is settings.py in current directory.
It can only support Python format for now. It"ll create a st