Oct. 25, 2018 » Django on Matt Layman » [Archived Version]
This was the first episode and it was an experiment in streaming. In future episodes, I’ve greatly improved audio and video settings. I’d suggest checking those out.
Read MoreOct. 24, 2018 » Instawork Engineering » [Archived Version]
About a year ago, Instawork started experimenting with a new product called Gigs. Gigs lets restaurants and caterers fill on-demand shifts with pre-qualified dishwashers, cooks, and servers from Instawork’s network of professionals. Our MVP was little more than a Google form to request shifts. This worked OK in the early days, but as the product took off, it became clear we needed a web dashboard for managers to view and edit their gigs.Our existing web dashboard (a hiring app for full time job…
Read MoreSept. 30, 2018 » Paolo Melchiorre » [Archived Version]
How-To guide to update a Django queryset with annotation and subquery.
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. 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 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 MoreAug. 31, 2018 » REVSYS Blog » [Archived Version]
Tips for Using Django's ManyToManyField
Read MoreAug. 20, 2018 » REVSYS Blog » [Archived Version]
A very common pattern in a Django Project is to have some kind of 'model-type' relationship, where you have some kind of object that can only belong to one of the types defined in the database.
Read MoreJuly 23, 2018 » REVSYS Blog » [Archived Version]
Celery and Django and Docker: Oh My!
Read More