The Python datetime library provides several useful objects to manipulate times and dates. I’ve been using them a lot lately, and I want to share some useful operations that might be useful to you as well 😉 You can find a video version of this post at the bottom of the page 🙂 Marina MeleMarina…
Author: Marina Mele
Tools for Testing in Django: Nose, Coverage and Factory Boy
In this post, you will learn how to install and use Nose, a tool for running your tests in Django. You’ll learn how to run and configure Coverage, so that it reports only the packages and directories of interest. And also, you’ll learn how to install and use Factory Boy in your tests (an alternative…
Install and configure Sublime Text 3 for Django
In this post, you’ll learn how to install Sublime Text 3, my new discovery regarding editors. It has made my life easier! Moreover, I’ll show you how to configure it to help you when coding with Django! Marina MeleMarina Mele has experience in artificial intelligence implementation and has led tech teams for over a decade….
Django best practices IV: Models, forms, managers, urls, admin, views and signals.
This is the fourth post about I write about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. Take a look at Part I, Part II and Part III. In this post, I’ll show you how to create your fist app, with its models,…
Django testing: Doctests and Unittests
In this post, I introduce testing in Django and discuss the two common ways of performing tests: using Doctests and using the library unittest. You’ll learn how to start writing your first test as well as the main differences between these two ways of testing. Note: this post uses the old Test Suit, used in…
Django best practices III: Install South, Localization, Internationalization and Django-registration
This is the third post about I write about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. Take a look at Part I and Part II here. In this post, I write about how to install South, how to prepare your…
Install Celery with Django on Heroku and create a Periodic Task
Previously, I wrote about How to install Celery on Django and Create a Periodic Task. This post extends that post to the particular case of how to install it on Heroku. You can also know more about how to deploy a Django app on Heroku. Marina MeleMarina Mele has experience in artificial intelligence implementation and has…
Django best practices II: Project structure and HTML5 Boilerplate implementation
This is the second post about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. Check the first part here. In this post, I write about how to build an ordered project structure: where you should put your apps, libraries and…
How to install Celery on Django and Create a Periodic Task
Updated on December 2015! – Now for Celery 3.1.19 and Django 1.8.7. This post explains how to set up Celery with Django, using RabbitMQ as a message broker. It also explains how to create a Periodic Task Marina MeleMarina Mele has experience in artificial intelligence implementation and has led tech teams for over a decade. On…
Django best practices I. Different environments, different settings files and Git.
Previously, I wrote a series of posts about how to deploy a Django app on Heroku, together with some best practices. But not everyone uses Heroku! Therefore, I’ll write about how to build a Django project from scratch, focusing on the project structure, internationalization and localization configuration, models, managers, views, forms and templates. In this…