<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>django tutorial on Kuldeep Pisda</title><link>https://kdpisda.in/tag/django-tutorial/</link><description>Recent content in django tutorial on Kuldeep Pisda</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 31 Oct 2025 15:40:46 +0530</lastBuildDate><atom:link href="https://kdpisda.in/tag/django-tutorial/index.xml" rel="self" type="application/rss+xml"/><item><title>A Guide to Humane Django Model Forms</title><link>https://kdpisda.in/a-guide-to-humane-django-model-forms/</link><pubDate>Fri, 31 Oct 2025 15:40:46 +0530</pubDate><guid>https://kdpisda.in/a-guide-to-humane-django-model-forms/</guid><description>&lt;p&gt;&lt;a href="https://www.djangoproject.com/?ref=kdpisda.in"&gt;Django&lt;/a&gt; ModelForms are a lifesaver. They are a brilliant shortcut for creating forms straight from your Django models, automatically handling fields, basic validation, and saving data. It&amp;rsquo;s a core feature that truly embodies the framework&amp;rsquo;s &amp;ldquo;Don&amp;rsquo;t Repeat Yourself&amp;rdquo; philosophy.&lt;/p&gt;
&lt;h2 id="why-manual-forms-are-a-recipe-for-burnout"&gt;Why Manual Forms Are a Recipe for Burnout&lt;a class="heading-anchor" href="#why-manual-forms-are-a-recipe-for-burnout" aria-hidden="true" tabindex="-1"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s be real: writing HTML forms by hand can be a soul crushing task. First, you carefully define all your fields in &lt;code&gt;models.py&lt;/code&gt;. Then, you jump over to &lt;code&gt;forms.py&lt;/code&gt; and define almost the exact same fields all over again. Finally, you wire it all up in the view, crossing your fingers that you did not misspell a field name somewhere along the way.&lt;/p&gt;</description></item><item><title>How to Create a Django Application That Doesn't Fall Apart</title><link>https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/</link><pubDate>Tue, 28 Oct 2025 15:26:09 +0530</pubDate><guid>https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/</guid><description>&lt;p&gt;The command to &lt;code&gt;django create application&lt;/code&gt; is simple: &lt;code&gt;python manage.py startapp &amp;lt;app_name&amp;gt;&lt;/code&gt;. It instantly generates a new directory with essential files like &lt;code&gt;models.py&lt;/code&gt; and &lt;code&gt;views.py&lt;/code&gt;. But here&amp;rsquo;s the trap I fell into early on: you can only run this command &lt;em&gt;after&lt;/em&gt; you have set up a Django project. And understanding the difference between a project and an application is the first boss battle every new Django developer faces.&lt;/p&gt;
&lt;h2 id="setting-the-stage-before-you-type-a-single-command"&gt;Setting The Stage Before You Type a Single Command&lt;a class="heading-anchor" href="#setting-the-stage-before-you-type-a-single-command" aria-hidden="true" tabindex="-1"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;picture&gt;
 &lt;source type="image/webp" srcset="https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_d57fc7f5db74b509.webp 400w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_3567dffdffd1dc36.webp 800w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_9a9f3c88f226d64.webp 1200w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_4190a8aa1739f6c2.webp 1392w" sizes="(min-width: 46rem) 704px, 100vw"&gt;
 &lt;img src="https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_9896672b5d0d71f6.jpg" srcset="https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_7efef850daf921ce.jpg 400w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_2120a18cb6b9c81.jpg 800w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_d2d0e096e63d423d.jpg 1200w, https://kdpisda.in/how-to-create-a-django-application-that-doesnt-fall-apart/2f62e32b-2497-413f-89bc-db73a9c64d5a_hu_9896672b5d0d71f6.jpg 1392w" sizes="(min-width: 46rem) 704px, 100vw"
 width="1392" height="752"
 alt="Infographic about django create application" loading="lazy" decoding="async"&gt;
&lt;/picture&gt;&lt;/p&gt;</description></item></channel></rss>