| Blog | The Big Log |
|---|---|
| RSS 2.0 Feed | The Big Log |
| web | https://thebiglog.com/ |
| Last Update | 03.23.2026 |
| Posts | 8 |
RSS feed for The Big Log
| Blog | The Big Log |
|---|---|
| RSS 2.0 Feed | The Big Log |
| web | https://thebiglog.com/ |
| Last Update | 03.23.2026 |
| Posts | 8 |
April 17, 2023 » The Big Log » [Archived Version]
<div class="notice"> <div class="notice-content"> <p>Obligatory <a href="https://thebiglog.com#tldr">TL;DR</a> with spoilers at the end of the post.</p> </div> </div> Background MusicButler is the first web-app I ever built. It notifies its users about new music by artists found in their libraries. It’s also how I learned a lot of what I know about programming and most of what I know about web-development. I believe it played a huge part in how I got to make a career shift to a software develop…
Read MoreFeb. 25, 2020 » The Big Log » [Archived Version]
Over the course of developing several Django apps, I've learned quite a bit about speed optimizations. Some parts of this process, whether on the backend or frontend, are not well-documented. I've decided to collect most of what I know in this article. If you haven’t taken a close look at the performance of your web-app yet, you're bound to find something good here. <details class="toc-container"><summary class="toc-title">What's in this article?</summary> <ul class="toc"> <li><a href="https://…
Read MoreJuly 28, 2019 » The Big Log » [Archived Version]
import demoVideo from './cookiecutter-demo-minified-9.mp4' This post is a guide on how to scaffold (quick-start) new projects efficiently with Cookiecutter, a library that creates projects from project-templates. It outlines how I created my own Django cookiecutter, Scaffold Django X, but the same can be applied to Flask and pretty much any other Python project. Working on some Django articles, I found myself needing to start a new project more often than usual. It can get tedious: having to in…
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 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 MoreApril 8, 2019 » The Big Log » [Archived Version]
When I first started dabbling with Django and web-development, a good friend with a little more experience advised that I should keep logic away from my templates. "Templates should be dumb". I didn't really understand what that meant until I started suffering the consequences of having logic in my .html files. After 3 years with Django, I now try to keep business-logic away not only from templates, but also from views. In this post I'll gradually go over from the least to the most recommended …
Read MoreSept. 9, 2018 » The Big Log » [Archived Version]
Something I learned today which should come handy. The include tag allows rendering a partial template from another: {% include 'foo/bar.html' %} So I was doing this to pass context to the included partial: {% with obj=release %} {% include 'releases_widget.html' %} {% endwith %} And this why it's good to read the docs, because apparently this can be done much better like so: {% include 'releases_widget.html' with obj=release %}
Read MoreSept. 5, 2018 » The Big Log » [Archived Version]
I've recently had to download my Django app's database for local inspection. Heroku lets you do that pretty easily with: $ heroku pg:backups:download This gets you a .dump file. Now it's time to create a database clone out of it. Here's the gist. We first create a new database: $ sudo -u USERNAME createdb NEW_DATABASE_NAME Note that USERNAME and NEW_DATABASE_NAME should be replaced with the respective values. The next step to is to restore the downloaded .dump to the database we just created:…
Read More