【文件属性】:
文件名称:django-chartjs-example:如何在Django中使用Chart.js
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-01 02:07:58
python django chartjs Python
如何在Django中使用Chart.js
教程代码示例。
在本地运行项目
首先,将存储库克隆到本地计算机:
git clone https://github.com/sibtc/django-chartjs-example.git
安装要求:
pip install -r requirements.txt
应用迁移:
python manage.py migrate
从灯具加载数据:
python manage.py loaddata countries.json cities.json
最后,运行开发服务器:
python manage.py runserver
该项目将在127.0.0.1:8000上可用。
执照
源代码是根据。
【文件预览】:
django-chartjs-example-master
----manage.py(626B)
----requirements.txt(14B)
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(2KB)
----mysite()
--------settings.py(3KB)
--------urls.py(327B)
--------core()
--------__init__.py(0B)
--------asgi.py(389B)
--------wsgi.py(389B)
--------templates()