May 29, 2019 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
Learn how to recover from ORM errors in Django and make your views more robust with try/except and a nice Django shortcut: get_object_or_404
Read MoreMay 28, 2019 » Instawork Engineering » [Archived Version]
Improving UI performance with Django’s Prefetch ObjectAs an engineer at Instawork, it’s my responsibility to make sure our web UI loads quickly to provide a great user experience. It can be hard to keep a page fast as we add features and display more information. I recently worked on such a page, which gave me an opportunity to learn about Django’s tools for optimizing database query performance.A core feature of Instawork is connecting our business partners with qualified hospitality professio…
Read MoreMay 26, 2019 » The Big Log » [Archived Version]
import demoVideo from './das-vid2-compressed.mp4' import demoVideo2 from './das-naive-comp.mp4' <div class="notice"> <div class="notice-content"> <p>Updated 24/03/2022: Django 4.0.3</p> </div> </div> This is a walkthrough tutorial on how to implement what's defined as “incremental search" in a Django app. We want results to refresh (with a tiny delay) as the user types their search term. We’ll also give a visual indication that the search is running by animating the search icon. Here's a demo o…
Read MoreMay 26, 2019 » The Big Log » [Archived Version]
Updated 24/03/2022: Django 4.0.3 This is a walkthrough tutorial on how to implement what’s defined as “incremental search” in a Django app. We want results to refresh (with a tiny delay) as the user types their search term. We’ll also give a visual indication that the search is running by animating the search icon. Here’s a demo of the final functionality: The source code for this tutorial is available on Github. Our app Don’t worry, not another blog or to-do app. This time it’s a musi…
Read MoreMay 22, 2019 » Django Chat » [Archived Version]
How to add user authentication to a Django website or API. Topics include sessions, tokens, JWTs, Social/OAuth, and more.
Read MoreMay 15, 2019 » Django Chat » [Archived Version]
How to make the most of a Python or Django conference.
Read MoreMay 8, 2019 » Django Chat » [Archived Version]
An interview with Robby Grodin from PathAI, a medical startup using Django to transform the field of pathology. We discuss switching from Java, microservices vs monoliths, and the challenges of hiring Django developers.
Read MoreMay 6, 2019 » Haki Benita » [Archived Version]
If you have a public facing Django site in multiple languages, you probably want to let Google and other search engines know about it.
Read MoreMay 1, 2019 » Django Chat » [Archived Version]
The Django Software Foundation is the non-profit in charge of Django. Its president, Frank Wiles, joins us to discuss how Django is run and how anyone in the community can become more involved.
Read MoreApril 28, 2019 » The Big Log » [Archived Version]
I've recently deployed a tiny changelog app in one of my Django projects. The models.py file looks like this: # changelog/models.py (truncated) class ChangeLog(models.Model): IMPROVEMENT = ('improvement', 'improvement') FEATURE = ('feature', 'feature') BUG = ('bugfix', 'bug fix') CHOICES = (IMPROVEMENT, FEATURE, BUG,) title = models.CharField(max_length=560) description = models.TextField(null=True, blank=True) category = models.CharField(choices=CHOICES, max_leng…
Read More