Add module tutorial
review32711002
This commit is contained in:
1 parent
5288ffac8c
commit
69b60e4571
22 files changed
+1628
-3
No files matched your search
@@ -0,0 +1,31 @@
|
||||
.. _tutorial-module-setup-database:
|
||||
|
||||
Initialize the database
|
||||
=======================
|
||||
|
||||
By default Tryton, use an SQLite database stored in the folder :file:`db` of
|
||||
your home directory.
|
||||
This can be changed in the ``database`` section of the `configuration
|
||||
<topics-configuration>`.
|
||||
|
||||
Now creating a Tryton database is only a matter of executing the following
|
||||
commands:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ mkdir ~/db
|
||||
$ touch ~/db/test.sqlite
|
||||
$ trytond-admin -d test --all
|
||||
|
||||
You will be prompted to set the administrator email and password.
|
||||
|
||||
Once the database is initialized you can run the Tryton server:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ trytond
|
||||
|
||||
Connecting to the database using a Tryton client you will be greeted by the
|
||||
module configuration wizard.
|
||||
|
||||
We will continue with :ref:`the anatomy of the module <tutorial-module-anatomy>`.
|
||||
Reference in new issue
Block a user