Google Analytics is a powerful tool that gives you useful insight about the traffic that arrives in your website. But together with Django, you will be able to retrieve data of your Analytics account and display it to the user, on demand. In this post you’ll learn how to put together Django, the oauth2 protocol and the…
Category: Django
How to correctly remove a Model or an App in Django
When you remove a Django Model or a full app in Django, you have to be careful in how you do it, and how the database will be affected. Thus, in this short post I’ll explain what I do when deleting a model or an app. Marina MeleMarina Mele has experience in artificial intelligence implementation…
Security on a Django app – HTTPS everywhere
Authentication credentials between your site and your end users must be secret. Is your site secure enough? One important step is to use HTTPS everywhere in your Django website, and in this post we will show you how to implement it. In particular, if you are deploying your App on Heroku, don’t miss this post 😉 Marina…
Document your Django projects: reStructuredText and Sphinx
Check this post to learn how to document a Django project! You’ll get an introduction to the reStructuredText markup language, learn how to install Sphinx, a library that takes the docstrings of your code and compiles them into nice html pages, and configure it for a Django project. Marina MeleMarina Mele has experience in artificial…
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…