查看应用程序运行状况的简单方法
django-health的Python项目详细描述
django health
==
轻松显示django应用程序的运行状况。你不需要对整页内容提出昂贵的要求。如果您的应用程序
已启动,则此终结点将起作用。
快速启动
----
1。使用pip安装:
$pip install django health
2。将“运行状况”添加到已安装的应用程序设置中:
已安装的应用程序=(
…
“运行状况”,
)
3。在项目URL中包含运行状况urlconf。py:
url(r'^health/',include('health.url'),
4。启动开发服务器“python manage.py runserver”
5。访问Health Endpoint(http://127.0.0.1:8000/health/)获取“200 ok”,以验证站点已启动,并且
Health Endpoint正在工作。
==
轻松显示django应用程序的运行状况。你不需要对整页内容提出昂贵的要求。如果您的应用程序
已启动,则此终结点将起作用。
快速启动
----
1。使用pip安装:
$pip install django health
2。将“运行状况”添加到已安装的应用程序设置中:
已安装的应用程序=(
…
“运行状况”,
)
3。在项目URL中包含运行状况urlconf。py:
url(r'^health/',include('health.url'),
4。启动开发服务器“python manage.py runserver”
5。访问Health Endpoint(http://127.0.0.1:8000/health/)获取“200 ok”,以验证站点已启动,并且
Health Endpoint正在工作。