Django admin commands¶
Lino applications are Django projects. Here is some more Django know-how you should know as a Lino developer.
manage.py file in every demo project is the standard
Django interface for running a so-called administrative task, also
known as admin command or management command. If you did't
know that, please read django-admin.py and manage.py.
Here are some standard Django admin commands that you should know.
Output all data in the database (or some tables) to a serialized stream. Serialization formats include json or xml. The default will write to stdout, but you usually redirect this into a file. See the Django documentation
With a Lino application you will probably prefer
Removes all data from the database and re-executes any post-synchronization handlers. The migrations history is not cleared. If you would rather start from an empty database and re-run all migrations, you should drop and recreate the database and then run
migrateinstead. See the Django documentation
Loads the contents of the named fixtures into the database. See the Django documentation.