Django Tips #3 Optimize Database Queries.

  • Admin
  • Oct. 20, 2018

This is a very simple trick that can help you optimize your database queries using the Django ORM. It is important to note that the Django QuerySets are lazy, which is a good thing if used properly.

Django Tips #2 humanize.

  • Admin
  • Oct. 20, 2018

Django comes with a set of template filters to add a “human touch” to your data. It is used to translate numbers and dates into a human readable format.

Django Tips #1 redirect.

  • Admin
  • Oct. 20, 2018

The function redirect will basically return an HttpResponseRedirect with the proper URL. I prefer to always use this shortcut so my codebase remains consistent.

How to Use Django Widget Tweaks.

  • Admin
  • Oct. 20, 2018

When it comes to build forms, Django Forms can be really handy. If your application provide ways for the end-user to input data, it’s strongly advised to do so through the built-in Django Forms. It will automate a good amount of work as well as providing a really stable and secure functionality.

Starting a New Django 2.0 Project.

  • Admin
  • Oct. 19, 2018

In this article you will find some useful tips regarding starting a new Django project and preparing a development environment. The steps below describes what I generally do when I’m starting a new project.