Django

Django

Django Styleguide Survey

by Radoslav Georgiev
Dec 15, 2021
The Django Styleguide is core to how we develop software, using Python and Django. Now, it's time to reach outside of HackSoft and see how other people are using the Django Styleguide. That's why we are conducting the Django Styleguide Survey.
Django

Improve your Django tests with fakes and factories: Advanced usage

by Martin Angelov
Dec 13, 2021
In this article, we do a deep-dive into Python's faker and Django's factory_boy, to show advanced usages that can improve the quality of your tests.
Django

Django ORM Under the Hood - Iterables

by Ivaylo Donchev
Nov 1, 2021
In this article, we are taking a look under the hood of Django's ORM internals, namely, Iterables.
Django

Django related fields & the caveats of implicit SQL INNER JOINs

by Ventsislav Tashev
Oct 8, 2021
Dealing with implicit SQL INNER JOINs when querying related fields with the Django ORM.
Django

Google OAuth2 with Django REST Framework & React: Part 2

by Ventsislav Tashev
May 11, 2021
See how to implement an end-to-end server-side Google OAuth2 flow with Django REST framework & React.
Django

Google OAuth2 with Django REST Framework & React: Part 1

by Martin Angelov
Apr 26, 2021
See how to implement an end-to-end client-side Google OAuth2 flow with Django REST framework & React.
Django

Quick and Dirty Django - Passing data to JavaScript without AJAX

by Radoslav Georgiev
Jan 25, 2021
A quick & dirty approach for passing data from Django to JavaScript, without using AJAX.
Django

Optimize Django build to run faster on GitHub Actions

by Ivaylo Bachvarov
Aug 13, 2020
Optimize build time for a Django project running on GitHub Actions. A couple steps for faster tests and smoother workflow.
Django

Django filter - filter(A).filter(B) vs filter(A, B)

by Ivaylo Donchev
Apr 13, 2020
In this article, we are exploring the behavior of Django ORM when it comes to filter chaining & reverse foreign key relations.
DevOps

GitHub Actions in action - Setting up Django and Postgres

by Radoslav Georgiev
Jan 6, 2020
In this article, we go step by step setting up Django & Postgres on GitHub Actions.
Django

Introducing an Enum choice field for Django

by Radoslav Georgiev
Jul 30, 2019
We created a small Django package that introduces an EnumChoiceField – a layer on top of CharField + choices, that uses Python’s enums.
Django

Renaming models in Django without heavy data migrations

by Martin Angelov
Mar 20, 2019
Renaming a key model in a huge Django application can be trickier than it seems. Tons of data migrations and halted feature development seem unavoidable. In this blog post, we share our alternative approach, avoiding most of the pain.
Django

Improve your Django tests with fakes and factories

by Martin Angelov
Aug 22, 2017
In this article, we show how to up your Django testing game, by using fakes & factories.
Django

Handle errors from third-party apps in Celery & Django

by Martin Angelov
May 29, 2017
Almost every Web application needs to use some third-party software. The problem we usually have to deal with is that third-party apps, like every other app, can return an error. The following article is going to show you how to handle those problems in a nice and neat way in Django with Celery.
Django

Integrating a "production-only" Google Analytics in Django

by Radoslav Georgiev
Apr 24, 2017
In this post we are exploring how to integrate Google Analytics in a Django project in a configurable way, so we don't track page views & clicks while developing locally.