<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Django on code.kiwi.com</title><link>https://code.kiwi.com/tag/django/</link><description>Recent content in Django on code.kiwi.com</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 15 Mar 2023 21:09:29 +0000</lastBuildDate><atom:link href="https://code.kiwi.com/tag/django/index.xml" rel="self" type="application/rss+xml"/><item><title>Testing and How it Actually Saves Time ????</title><link>https://code.kiwi.com/articles/testing-and-how-it-actually-saves-time-%F0%9F%A4%94/</link><pubDate>Tue, 24 Jan 2017 20:43:00 +0000</pubDate><guid>https://code.kiwi.com/articles/testing-and-how-it-actually-saves-time-%F0%9F%A4%94/</guid><description>&lt;hr&gt;
&lt;p&gt;In November 2016, I had the great opportunity of travelling to Amsterdam and attending &lt;a href="https://www.djangounderthehood.com/"&gt;&lt;strong&gt;Django: Under the Hood&lt;/strong&gt;&lt;/a&gt; &lt;strong&gt;✨&lt;/strong&gt; for the first time. This is an important conference for Django developers and provides deep and detailed talks. It’s a great opportunity to find out what is happening, learn about the future plans for Django and to meet a lot of people from the Django community—most of them from the Django Core Team. ❤&lt;/p&gt;</description></item><item><title>Django Under The Hood 2016: Performance Debugging</title><link>https://code.kiwi.com/articles/django-under-the-hood-2016-performance-debugging/</link><pubDate>Thu, 12 Jan 2017 21:06:00 +0000</pubDate><guid>https://code.kiwi.com/articles/django-under-the-hood-2016-performance-debugging/</guid><description>&lt;p&gt;After &lt;a href="https://code.kiwi.com/django-under-the-hood-2016-validation-68cc635a07c4#.uca1pfz64"&gt;Django validation&lt;/a&gt;, debugging was another interesting presentation from the &lt;a href="https://www.djangounderthehood.com/"&gt;Django Under the Hood&lt;/a&gt; conference by &lt;a href="https://myks.org/en/"&gt;Aymeric Augustin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The introduction covered the Browser Console and the Django Debug Toolbar: both show the &lt;strong&gt;Page load time&lt;/strong&gt; of a website, split into multiple stages. We use the Django Debug Toolbar pretty often, however mostly for inspecting SQL queries. It is easy to get too many SQL queries without the proper use of &lt;code&gt;select_related&lt;/code&gt; and &lt;code&gt;prefetch_related&lt;/code&gt;, which are very popular and almost necessary Django methods on Querysets. At this point, we have no need to improve our Page load time but the detailed stages description and DOM loading in Django were useful concepts to learn about.&lt;/p&gt;</description></item><item><title>Django Under The Hood 2016 : Validation</title><link>https://code.kiwi.com/articles/django-under-the-hood-2016-validation/</link><pubDate>Fri, 06 Jan 2017 20:58:00 +0000</pubDate><guid>https://code.kiwi.com/articles/django-under-the-hood-2016-validation/</guid><description>&lt;p&gt;One of many great perks of working for &lt;a href="http://www.kiwi.com/"&gt;Kiwi.com&lt;/a&gt; is that the company provides you with opportunities to get as much education and self-improvement as you can. That means — &lt;em&gt;attending conferences&lt;/em&gt;!&lt;/p&gt;
&lt;p&gt;Here’s what I learned at Django Under The Hood talk from &lt;em&gt;Loïc Bistuer&lt;/em&gt; about &lt;em&gt;Django Validation&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>How to Find a “Silent” Bug</title><link>https://code.kiwi.com/articles/how-to-find-a-silent-bug/</link><pubDate>Tue, 25 Oct 2016 19:32:00 +0000</pubDate><guid>https://code.kiwi.com/articles/how-to-find-a-silent-bug/</guid><description>&lt;p&gt;Now and again, some very weird bugs occur.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://code.kiwi.com/images/media/51625b72f3c060100005bad08a6783a078b2c1caefae731051dfd7653fd56ee4.webp" alt=""&gt;&lt;/p&gt;
&lt;p&gt;Photo by &lt;a href="https://unsplash.com/photos/iZJTmZAff8w?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;David Clode&lt;/a&gt; on &lt;a href="https://unsplash.com/?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the case of &lt;a href="https://www.djangoproject.com/"&gt;Django&lt;/a&gt;, and out internal Kiwibase project, I spent half a day fighting with a particularly weird bug.&lt;/p&gt;
&lt;h2 id="what-happened"&gt;What Happened&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;A colleague had prepared a branch for our shiny new feature&lt;/li&gt;
&lt;li&gt;Tests were passed (okay, I’m lying slightly; there was one minor bug in the HTML content which was not related to this issue)&lt;/li&gt;
&lt;li&gt;I was able to successfully run it on my computer&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So I tried to deploy it on the server and it didn’t work. The only screen I could see was this:&lt;/p&gt;</description></item></channel></rss>