mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-15 11:58:42 +08:00
29 lines
645 B
Markdown
29 lines
645 B
Markdown
# 常用命令
|
|
|
|
|
|
## 接口文档
|
|
```
|
|
http://127.0.0.1:8000/api/schema/swagger-ui/
|
|
http://127.0.0.1:8000/api/schema/redoc/
|
|
http://127.0.0.1:8000/api/
|
|
http://127.0.0.1:8000/admin/
|
|
```
|
|
|
|
## 构建
|
|
```
|
|
python manage.py makemigrations
|
|
python manage.py migrate
|
|
python manage.py shell_plus
|
|
```
|
|
|
|
## 启动
|
|
```
|
|
python tools/create_configs.py
|
|
python tools/rebuild_database.py
|
|
python manage.py createsuperuser
|
|
python manage.py runscript init_permission
|
|
python manage.py runscript create_user
|
|
python manage.py runscript create_test_data
|
|
python manage.py runserver
|
|
gunicorn project.asgi:application -c configs/gunicorn.py -k uvicorn.workers.UvicornWorker
|
|
```
|