Nov. 8, 2018 » Django on Matt Layman » [Archived Version]
In this stream episode, I built a Django model that would allow my SaaS app (College Conductor) to deal with multiple Stripe plans. After building the model, we updated the landing page to display a different plan based on the database data from the model.
Read MoreNov. 5, 2018 » Haki Benita » [Archived Version]
I often talk about making Django scale but what does it actually mean? It means getting consistent performance regardless of the amount of data. In this article we tackle The last nail in Django admin's scalability coffin - the paginator.
Read MoreOct. 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 More