- python版本:3.7以上
- django版本:2.1.7
- 推荐使用虚拟环境virtualenv,(安装命令:pip install virtualenv)
- virtualenv venv --python=python3 (生成虚拟环境)
- ./venv/bin/pip install -r requirements.txt
nio-ops-framework base on cmdb
python manage.py createsuperuser
- python3 manage.py makemigrations --settings workflow.settings
- python3 manage.py migrate --run-syncdb --settings workflow.settings
./manage.py runserver --settings workflow.settings
- python3 manage.py makemigrations --settings cmdb.settings
- python3 manage.py migrate --run-syncdb --settings cmdb.settings
./manage.py runserver --settings cmdb.settings