Blog

Ideas and insights from our team

Posts order by Django category

DjangoCon Europe 2017 was awesome!
Rob Novelino

DjangoCon Europe happened in one of the most historical cities in Italy! Florence was the most exciting place to be around in Europe, if you are a Django enthusiast, from April 3rd to April 7th. The event had the presence of some important names on it, like Andrew Godwin and Marc Tamlyn, both cor...

April 28, 2017
read more
Advanced Django querying: sorting events by date
Filipe Ximenes

Imagine the situation where our application has events (scheduled tasks, appointments, python conferences across the world) happening in different moments of time. Almost anything with a date attached to it. We want to display them in a simple list to the user. Given we are in February 2017 (the ...

April 19, 2017
read more
How I test my DRF serializers
Filipe Ximenes

How I test my DRF serializers In this blog post, I will show the whats and whys on testing Django REST Framework serializers. First, some context. Here is the model setup we are going to use for this example: from django.db import models class Bike(models.Model): COLOR_OPTIONS = (('yello...

Jan. 11, 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
Classy Django REST Framework Release
André Ericson

We are proud to announce the release of Classy Django REST Framework, a web-based documentation with flattened information about Django REST Framework's class-based views and serializers. It is heavily based on Classy Class-based View and users familiar with it will feel right at home. It is avai...

May 22, 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
Django CORS
Filipe Ximenes

It’s common among web developers, and mainly the ones who are developing web APIs, to face problems related to CORS. According to Wikipedia: Cross-origin resource sharing (CORS) is a mechanism that allows many resources (e.g. fonts, JavaScript, etc.) on a web page to be requested from another dom...

March 17, 2015
read more