2022年7月27日水曜日

Django シンプルヘルスチェック

$ vi Config/urls.py
from django.http           import     HttpResponse

urlpatterns = [
path( 'health', lambda r: HttpResponse()),
]

$ curl -i http:///localhost:8000/health

0 件のコメント:

コメントを投稿

python バージョン切り替え

# dnf install python3.9 # dnf install python3.11 # dnf install python3.12 # dnf install python3.13 # alternatives --install /usr/bin/python ...