<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: redryan</title>
    <description>The latest articles on DEV Community by redryan (@emfpdlzj).</description>
    <link>https://dev.to/emfpdlzj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2044924%2F71f93f10-1db5-4403-b8c3-0f269efe81b6.png</url>
      <title>DEV Community: redryan</title>
      <link>https://dev.to/emfpdlzj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emfpdlzj"/>
    <language>en</language>
    <item>
      <title>django-deploy-probes — deployment probe endpoints for Django</title>
      <dc:creator>redryan</dc:creator>
      <pubDate>Sun, 24 May 2026 04:26:25 +0000</pubDate>
      <link>https://dev.to/emfpdlzj/django-deploy-probes-deployment-probe-endpoints-for-django-5akb</link>
      <guid>https://dev.to/emfpdlzj/django-deploy-probes-deployment-probe-endpoints-for-django-5akb</guid>
      <description>&lt;p&gt;When deploying Django applications, I kept running into the same problem: health check endpoints were implemented differently in every project, and liveness checks often got mixed together with dependency checks.&lt;/p&gt;

&lt;p&gt;I built &lt;code&gt;django-deploy-probes&lt;/code&gt; to make that cleaner.&lt;/p&gt;

&lt;p&gt;It is a small Django package that adds these endpoints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/healthz&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/readyz&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/startupz&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/version&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The package is meant for production deployment workflows such as Docker health checks, Kubernetes liveness/readiness/startup probes, blue-green deployments, rolling deployments, and CI/CD deployment validation.&lt;/p&gt;

&lt;p&gt;One design choice I cared about was keeping &lt;code&gt;/healthz&lt;/code&gt; lightweight. Database, Redis, Celery, or other dependency checks do not belong in a liveness endpoint by default, so those checks are meant to live in &lt;code&gt;/readyz&lt;/code&gt; or &lt;code&gt;/startupz&lt;/code&gt; and be enabled explicitly through settings.&lt;/p&gt;

&lt;p&gt;The goal was not to build a full monitoring system, but to provide a small, reusable package for a piece of deployment logic that tends to get rewritten over and over in Django projects.&lt;/p&gt;

&lt;p&gt;Installation is simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;django-deploy-probes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then include the URLs in your Django project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;django.urls&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;include&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;

&lt;span class="n"&gt;urlpatterns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nf"&gt;path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;probes/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;include&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;django_deploy_probes.urls&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That gives you endpoints like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/probes/healthz&lt;/li&gt;
&lt;li&gt;/probes/readyz&lt;/li&gt;
&lt;li&gt;/probes/startupz&lt;/li&gt;
&lt;li&gt;/probes/version
The first public release is 0.1.0, and it is available on both GitHub and PyPI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/emfpdlzj/django-deploy-probes" rel="noopener noreferrer"&gt;https://github.com/emfpdlzj/django-deploy-probes&lt;/a&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/django-deploy-probes/" rel="noopener noreferrer"&gt;https://pypi.org/project/django-deploy-probes/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d appreciate feedback from people running Django in production, especially around the endpoint split, default behavior, and whether there are deployment cases I should support better.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>django</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
