Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django News - Design, DRF Recipes, Async, and more. - Aug 13th 2021
News Django Survey 2021 Please take a moment to fill out the official Django Developers Survey. It helps the community know how Django and related tools/technologies are being used and guide the future development of the framework. jetbrains.com PEP 665: Specifying Installation Requirements for Python Projects This PEP specifies a file format to list the Python package installation requirements, including lock files. github.io Sponsored Link REVSYS We’re senior Django developers, ops people, and consultants who have a deep and wide experience to pull from. We know what works and what doesn’t. We have been where you are before (probably many times). Let us guide you onto a better path. revsys.com Articles Django Rest Framework Recipes Are you looking for an extensive guide of Django Rest Framework recipes? Then look no more. tinystruggles.com async test patterns for Pytest Learn some handy async examples and patterns for testing in Pytest. github.io Building a Django driver for Psycopg 3 psycopg3 is the new implementation of the most popular PostgreSQL adapter for Python. psycopg.org Why You Should Use EditorConfig to Standardize Code Styles EditorConfig may be the standard you needed but didn't know it. freecodecamp.org Design Articles Adding Tailwind CSS to a Django Website … -
How to create a self-signed SSL certificate without much effort and run a local Django development server over HTTPS
Generating a self-signed SSL certificate for local Django development has always been a hassle for me. Until the day I discovered mkcert, a zero-config tool that creates locally trusted development certificates, your browser will not complain about. In this tutorial, I'll share my process, and you'll learn how to … Read now -
How to Use Celery for Scheduling Tasks
There are multiple ways to schedule tasks in your Django app, but there are some advantages to using Celery. It’s supported, scales well, and works nicely with Django. Given its wide use, there are also lots of resources for learning more about it, and once learned, that knowledge is likely to be useful on other projects. By the way, this blog is an updated version of one I wrote in 2014 on the same topic, but it applied to Celery 3.0.x. Celery Version 5.0.x This documentation applies to Celery 5.0.x. Earlier or later versions of Celery might behave differently. Also, links to Celery documentation might stop working if newer versions of Celery reorganize the documentation, which does happen. Introduction to Celery The purpose of Celery is to allow you to run code according to a schedule. Why might this be useful? Here are a couple of common cases: Case 1: Suppose a web request has come in from a user, who is waiting for the request to complete so a new page can load in their browser. Based on their request, you have some code to run that's going to take a while (longer than the person might want to … -
What is GraphQL and how to use GraphQL in Django? #01
What is GraphQL? A query language for your API Before we start, let's get to know what is GraphQL? If we refer to its docs, GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a co... -
How to create a self-signed SSL certificate without much effort and run a local Django development server over HTTPS
Generating a self-signed SSL certificate for local Django development has always been a hassle for me. Until the day I discovered mkcert, a zero-config tool that creates locally trusted development certificates, your browser will not complain about. In this tutorial, I'll share my process, and you'll learn how to … Read now -
Creating and Understanding a Django project
Overview Okay peeps, welcome back, it's been a while now, so let's get to it. I'll be talking to you about creating a django project and explaining the project structure and some files inside the project. For the purpose of this series, we'll be crea... -
How to safely move a model to another app in Django
Intro In most cases, we start building our Django projects with a small number of Django apps. At some point, our projects grow and apps become larger which complicates the code maintenance. And we start thinking about refactoring - splitting a big... -
Django QuerySet Examples (with SQL code included)
Intro In this article, you will find the most commonly used Django QuerySet examples with SQL codes. A QuerySet describes a collection of objects/rows from your database. At some point, QuerySets are being "converted" to SQL queries. And one of t... -
Django QuerySet Examples (with SQL code included)
Intro In this article, you will find the most commonly used Django QuerySet examples with SQL codes. A QuerySet describes a collection of objects/rows from your database. At some point, QuerySets are being "converted" to SQL queries. And one of t... -
How to use Django shell in Jupyter Notebook
Intro Running Django, especially Django querysets in Jupiter notebooks might be useful if you want to analyze/plot the data that is in your database. Also, sometimes it's hard to execute big querysets in CLI using Django's interactive shell. In this... -
How to use Django shell in Jupyter Notebook
Intro Running Django, especially Django querysets in Jupiter notebooks might be useful if you want to analyze/plot the data that is in your database. Also, sometimes it's hard to execute big querysets in CLI using Django's interactive shell. In this... -
Django Login Redirect
I have decided to dump the Django login view and make my own, but I am now faced with the issue of Redirecting the user to the homepage when login successfully seems easy 😋 Redirecting user to previously requested page upon being redirect to login ... -
Let's add QR feature for our Django application!
The mobile phone has become a must in our day-to-day life and is quite useful as it is the simplest means for communication, sharing, and creation of data. One simple way of sharing data is by using QR. We often do see in restaurants, on the dining t... -
About Finite-State Machines in Django
Finite-state machines (FSMs) are awesome. I was first introduced to the concept through the XState JS package. This package is, obviously, geared towards front end work, but the concepts are the same. Now, I'm no expert in the theory behind FSMs, so ... -
Django News - Annual Django Survey and Django 3.2.6 Bugfix Release - Aug 6th 2021
News Django Developers Survey 2021 by JetBrains and the DSF Please take a moment to fill out the official Django Developers Survey. It helps the community know how Django and related tools/technologies are being used and guide the future development of the framework. jetbrains.com Django bugfix release: 3.2.6 New Django bugfix available. As always, the best security is to be up-to-date with the latest version of Django. Here are the official docs on how to upgrade properly. djangoproject.com Events Call for Proposals | Django Day Copenhagen 2020 The third Django Day will take place on September 24th, 2021. Deadline for submissions is August 15th. djangoday.dk Sponsored Link REVSYS We’re senior Django developers, ops people, and consultants who have a deep and wide experience to pull from. We know what works and what doesn’t. We have been where you are before (probably many times). Let us guide you onto a better path. revsys.com Articles Get yourself a better Django proxy experience by Niccolò Mineo A couple of tips when working with Django proxies that will make end-users grateful and developers sigh in relief. medium.com Django Todo App with AJAX and jQuery Detailed look at an async Django todo app powered by … -
About Postponed Evaluation of Annotations
Let's say you're working on a Django project, and you have a model with a custom create method on the manager: # managers.py class MyManager: def create(self): # your custom logic here return super().create() # models.py from .ma... -
Contributing to Django - David Smith
David Smith on Twitterdjango-crispy-formsdjangobenchDiátaxis FrameworkAirspeed Velocity (ASV)DSF Triage & Review TeamVictor Stinner’s Notes on Benchmarking PythonSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider visiting LearnDjango.com, Button, or Django News. -
About self.subTest
self.subTest is a part of Django's TestCase class and is used as follows: def test_a_view(self): response = self.client.get(url) with self.subTest("Response status code"): self.assertEqual(response.status_code, 200) with self.su... -
Django Login and Logout Users
Hello and welcome to the second part of this series, I hope you have implemented the user's registration with email confirmation discussed in part one, today we will implement the following Authentication Vs Authorization User Login and Logout P... -
Deploying Flask App - With Heroku
Heroku is the simple and easiest way to deploy your backend APIs. The blog consists of step-by-step instructions to deploy your application along with a project template that makes it easy for you to organize your applications. Note:: The followin... -
Django soft delete options
In this post, I try and explore different ways of doing soft delete's in Django, either using a library or from the models directly. The reason I am trying out all these options, is to make sure that the consequences of any framework or approach, are... -
Supporting Multiple Languages in Django
This tutorial looks at how to add multiple language support to your Django project. -
Django User Registration
Hello and welcome, So you have known the Django basics and it's time to do some real stuff right? Ok cool, Let's start with creating an app that gets users' information and stores them in the database.In this article, we will cover the following R... -
Deploy Django Application to Heroku
Hello, We have successfully completed our CRUD Django website which we have pushed to the GitHub repository but it can only be used locally on our system and it's time for us to show the world what we have created by hosting our website on Heroku. ... -
Django News - All about Django search and PostgreSQL - Jul 30th 2021
Articles Postgres Full-Text Search: A Search Engine in a Database With Postgres, you don't need to immediately look farther than your own database management system for a full-text search solution. If you haven't yet given Postgres' built-in full-text search a try, read on for a simple intro. crunchydata.com Enhancing the Django “redirects” app by Niccolò Mineo Take Django's redirects app for a spin and find out how to extend it even further to accommodate features content managers and marketers use and love. medium.com How to Dockerize Django in 5 minutes A quick summary of Docker and why you should consider using it in your Django projects. justdjango.com Django REST Framework Serializer Geoffrey Israel Chinedu covers a little bit of everything with Django REST Framework Serializers. hashnode.dev Best PostgreSQL GUIs in 2020 An overview of PostgreSQL GUI tools available for querying, visualizing, and analyzing your Postgres data, as well as remotely accessing and navigating database servers. retool.com Videos Microsoft: Django Beginner's Series This is one of a twenty-four part video series on learning Django from Microsoft. youtube.com Projects etianen/django-watson Full-text multi-table search application for Django. Easy to install and use, with good performance. github.com vintasoftware/django-pg-tenants Tenant support for Django using PostgreSQL …