Django
Django
Adding required two-factor authentication (2FA) to the Django admin
by Vasil Slavov
Jul 13, 2023The Django admin is a powerful tool for managing our web applications.
In this article, we will show how to add additional layer of security, by enforcing two-factor authentication (2FA) for all users, logging in to the Django admin.
Django
Adding Google login to your existing Django and Django Rest Framework applications
by Tanya Kokonyan
Jun 13, 2023In this article, we show 2 ways of adding Google login to your existing Django & Django Rest Framework project, without relying on big 3rd party apps.
Python
Chatting with Django’s documentation using langchain, Chroma & OpenAI APIs
by Radoslav Georgiev
Apr 19, 2023In this article, we explore how to leverage the new set of LLM & AI tools, in order to ask questions over Django's documentation.
Django
Timestamps in Django - exploring auto_now, auto_now_add and default
by Radoslav Georgiev
Jan 30, 2023In this article we explore the behavior of auto_now, auto_now_add and default, in the context of the usual created_at and updated_at timestamps, that we add to our Django models.
Django
Django's JSONField incrementation with F expressions
by Vasil Slavov
Sep 16, 2022Updating a QuerySet using an F expression is a common and very useful Django pattern.
In this article, we explore how to bring this pattern to a JSONField.
Django
Direct to S3 file upload with Django
by Radoslav Georgiev
Apr 12, 2022File upload tend to show up as a feature in most web apps.
In this article, we explore how to handle direct to S3 uploads with Django, where the actual file upload bypasses the Django backend.
Django
Django Styleguide Survey
by Radoslav Georgiev
Dec 15, 2021The 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, 2021In 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, 2021In 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, 2021Dealing 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, 2021See 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, 2021See 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, 2021A 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, 2020Optimize 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, 2020In this article, we are exploring the behavior of Django ORM when it comes to filter chaining & reverse foreign key relations.
Your development partner beyond code.