Added the database initialization to README.

This commit is contained in:
依瑪貓 2020-09-09 09:16:37 +08:00
parent 15ad595ad1
commit 7358b3ed9d

View File

@ -105,6 +105,22 @@ base template `base.html`.
{% endfor %}
```
### Database Initialization
Run the management commands to initialize the database.
```
./manage.py makemigrations
./manage.py migrate accounting
./manage.py accounting_accounts
```
Optionally you can populate the database with some sample data.
```
./manage.py accounting_sample
```
### Restart Your Web Project
## Advanced Settings