Nov. 26, 2018 » James Bennett » [Archived Version]
A couple weeks ago I gave a talk about usernames at North Bay Python. The content came mostly from things I’ve learned in roughly 12 years of maintaining django-registration, which has taught me more than I ever wanted to know about how complex even “simple” things can be. I mentioned toward the beginning of the talk, though, that it wasn’t going to be one of those “falsehoods programmers believe about X” things. If … Read full entry
Read MoreNov. 22, 2018 » Django on Matt Layman » [Archived Version]
In this episode, we added Celery beat to College Conductor. Celery beat is the scheduler for the Celery worker system. I walked through how to test new infrastructure, confirmed that Celery beat worked, then showed how to add it to Ansible, the infrastructure deployment tool.
Read MoreNov. 20, 2018 » James Bennett » [Archived Version]
If you’re not the sort of person who closely follows the internals of Django’s development, you might not know there’s a draft proposal to drastically change the project’s governance. It’s been getting discussion on GitHub and mailing lists, but I want to take some time today to walk through and explain what this proposal does and what problems it’s trying to solve. So. Let’s dive in. What’s wrong with Django? Django the web framework is doing pretty … Read full entry
Read MoreNov. 20, 2018 » James Bennett » [Archived Version]
If you’re not the sort of person who closely follows the internals of Django’s development, you might not know there’s a draft proposal to drastically change the project’s governance. It’s been getting discussion on GitHub and mailing lists, but I want to take some time today to walk through and explain what this proposal does and what problems it’s trying to solve. So. Let’s dive in. What’s wrong with Django? Django the web framework is doing pretty … Read full entry
Read MoreNov. 19, 2018 » Django on Matt Layman » [Archived Version]
I started streaming on Twitch. The stream covers how to build a Software as a Service (SaaS) with Python using Django. The stream runs at 9pm Eastern time on Wednesday most weeks. I show developers how to build a site that is more complex than a tutorial. We look at: Designing and creating pages for users How to create automated tests for the code Making background jobs that handle business processes Deploying code and infrastructure development During the stream, we’re working on College C…
Read MoreNov. 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 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 More