django 官方示例
https://docs.djangoproject.com/zh-hans/5.1/intro/
python manage.py runserver应用测试:https://docs.djangoproject.com/zh-hans/5.1/intro/tutorial05/
测试工具:https://docs.djangoproject.com/zh-hans/5.1/topics/testing/
运行所有用例:
python manage.py test运行polls应用下的所有用例:
python manage.py test polls运行polls应用下的tests目录用例:
python manage.py test polls.tests运行polls应用下的test_model.py文件中的 QuestionModelTests 测试类:
python manage.py test polls.tests.test_model.QuestionModelTestshttps://docs.djangoproject.com/zh-hans/5.1/topics/cache/
django-db-performance
这个库可以帮助你监控 Django 的数据库性能,它会记录查询的执行时间,并报告在基准测试过程中数据库的性能瓶颈




