Blog

Ideas and insights from our team

Posts order by Django tag

Django REST Framework Read & Write Serializers
Hugo Bessa

Django REST Framework (DRF) is a terrific tool for creating very flexible REST APIs. It has a lot of built-in features like pagination, search, filters, throttling, and many other things developers usually don't like to worry about. And it also lets you easily customize everything so you can make...

March 6, 2018
read more
Multitenancy: juggling customer data in Django
Filipe Ximenes

Suppose you want to build a new SaaS (Software as a Service) application. Suppose your application will store sensitive data from your customers. What is the best way to guarantee the isolation of the data and make sure information from one client does not leak to the other? The answer to that is...

Sept. 13, 2017
read more
Metaprogramming and Django - Using Decorators
Victor Carriço

While programming is about, in some way, doing code to transform data, metaprogramming can be seen as the task of doing code to change code. This category is often used to help programmers to enhance the readability and maintainability of the code, help with separation of concerns and respect one...

Nov. 17, 2016
read more
Database concurrency in Django the right way
Guilherme Caminha

When developing applications that have specific needs for running asynchronous tasks outside the web application, it is common to adopt a task queue such as Celery. This allows, for example, for the server to handle a request, start an asynchronous task responsible of doing some heavyweight proce...

Sept. 29, 2016
read more
3 Django apps for sending great e-mails
Flávio Juvenal

Sending e-mails from a Django project? Those Django apps might help you: django-templated-email django-templated-email allows you to send templated HTML or plaintext e-mails. Use Django template language with all templatetags and filters to easily build your e-mail templates. django-premailer Why...

July 3, 2015
read more
Uploading files from the frontend to Amazon S3
André Ericson

A common problem appears when uploading large files to Heroku. Every request made to Heroku must last less than 30 seconds or it will get terminated, when uploading large files, 30 seconds might not be enough. More information can be found here. One way to deal with this situation is to upload fi...

June 24, 2015
read more
10 Django apps you're not using but should be
Flávio Juvenal

There are some open-source Django apps that make our lives as Django developers easier, but sometimes we don't even know they exist! Good third-party apps can give you new features at little expense, make your tests easier or even improve the performance of your deployment process. Please take a ...

June 4, 2015
read more
A Basic SEO for Django
Victor Carriço

First of all, you might be asking, what is SEO? Well, "Search Engine Optimization" is about making small modifications to parts of your website that will make it easier for search engines to crawl, index and understand your content. Here, I'm going to show a quick guide on how to implement the SE...

May 5, 2015
read more
An approach to Angular separation of concerns
Filipe Ximenes

Angular.js is a great JavaScript framework, it makes easy to develop Single Page Applications (SPAs) and removes most of the pain regarding data binding, requests and routing. Unlike many MVW (Model View Whatever) frameworks and because the way JavaScript works, it does not force us to organize ...

March 20, 2015
read more