March 30, 2017 » Haki Benita » [Archived Version]
Django Admin is a powerful tool for managing data in your app. However, it was not designed with summary tables and charts in mind. Luckily, the developers of Django Admin made it easy for us to customize. We are going to turn Django Admin into a dashboard by adding a chart and a summary table.
Read MoreFeb. 17, 2017 » Haki Benita » [Archived Version]
Django signals are extremely useful for decoupling modules. They allow a low-level Django app to send events for other apps to handle without creating a direct dependency. Signals are easy to set up, but harder to test. In this article we implement a context manager for testing Django signals, step by step.
Read MoreFeb. 14, 2017 » Django on Matt Layman » [Archived Version]
College Conductor gives educational consultants and counselors access to the information of thousands of U.S. colleges and universities. The most natural method to find these schools is through search. Since College Conductor keeps up with the latest versions of Django, I was able to add search by using PostgreSQL’s full text search that is exposed to the Django ORM. The search features are not perfect, but they provide results quickly and avoid bringing in a more targeted tool like Elasticsear…
Read MoreFeb. 7, 2017 » Django on Matt Layman » [Archived Version]
The last Rollbar post that I made covered how to integrate Rollbar into your Ember application. As a reminder, Rollbar is a service that let’s you record your errors wherever they happen. In that original post, I didn’t cover how to include Rollbar in a Django application because the Rollbar team does a great job of that in their own documentation. But what happens when you want to do asynchronous task management with Celery in your Django app?
Read MoreJan. 10, 2017 » Django on Matt Layman » [Archived Version]
I’m a big proponent of using a framework to reduce the time required to make something useful. Occasionally, using a framework means that developers must explore to understand what is possible. This truth is even more evident when there are layers of extensions to achieve a desired result. For instance, College Conductor is driving an EmberJS app with a JSON API powered by Django. The API uses the excellent Django REST Framework and the DRF JSON API extension.
Read MoreNov. 22, 2016 » django on Jacob Kaplan-Moss » [Archived Version]
Videos from Django Under the Hood 2016 are up - check ’em out! As usual, the conference was amazing and the content was fantastic. I really enjoyed all the talks, and they’re all worth your time to talk. Three in particular stood out to me as exceptional highlights: Ana’s talk on Testing in Django is the single best talk on effective testing of Django apps I’ve ever seen. I really like her technique of explaining Django’s testing APIs by looking at how they changed over time: it does a great jo…
Read MoreNov. 1, 2016 » Haki Benita » [Archived Version]
The built-in admin actions, operate on a queryset and are hidden in a dropbox menu. They are not suitable for most use cases. In this article we are going to add custom action buttons for each row in a Django Admin list view.
Read MoreOct. 25, 2016 » Haki Benita » [Archived Version]
We recently added a bank account like functionality into one of our products. During the development we encountered some textbook problems and I thought it can be a good opportunity to go over some of the patterns we use in our Django models.
Read MoreSept. 12, 2016 » /var/ - django » [Archived Version]
How to split a query containing spaces into individual model fields
Read MoreSept. 11, 2016 » Markus Holtermann » [Archived Version]
Most websites require some kind of authentication. Email & password is common but sometimes not enough. In those cases 2FA adds an additional security layer.
Read More