What's new in Django community blogs?

Multiple Stripe plans - Building SaaS #3

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 More

Optimizing the Django Admin Paginator

Nov. 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 More

Building SaaS with Python and Django #1

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 More

Iterating with Simplicity: Evolving a Django app with Intercooler.js

Oct. 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 More

Update annotated Django querysets using subqueries

Sept. 30, 2018 » Paolo Melchiorre » [Archived Version]

How-To guide to update a Django queryset with annotation and subquery.

Read More

Django templates: 'include' context

Sept. 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

Django templates: 'include' context

Sept. 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

Restoring a database from Heroku for local development

Sept. 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

Restoring a database from Heroku for local development

Sept. 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

Tips for Using Django's ManyToManyField

Aug. 31, 2018 » REVSYS Blog » [Archived Version]

Tips for Using Django's ManyToManyField

Read More