Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
DjangoCon Europe 2021 Sale of “Speed Up Your Django Tests”
I released my book Speed Up your Django Tests (SUYDT) just over a year ago, on the 18th May. It’s had a great reception, with 379 customers so far, many writing in to say how it has improved their test suites’ performance and readability. Additionally, this week I’m speaking at the second virtual DjangoCon Europe. My talk is at 9:15 am on Friday, on a topic related to the book: Speed up your tests with setUpTestData. If you’re attending, I look forward to seeing you there! (It’s still possible to buy tickets, and I believe it will be during the conference.) To celebrate these two occurrences, I’m offering a 33% discount on the list price of SUYDT. This takes it from $49 to $32, licensed for up to three developers. The discount lasts until the final day of DjangoCon Europe, Sunday the 6th June, “anywhere on Earth”. It also stacks with the regional discount of 50% off for those who live outside the GDP top 50. Find out more and buy on Gumroad. The current edition is based on Django 3.0 (and older). I’m partway through updating the content for changes up to Django 3.2, and should publish the update … -
DjangoCon Europe 2021 Sale of “Speed Up Your Django Tests”
I released my book Speed Up your Django Tests (SUYDT) just over a year ago, on the 18th May. It’s had a great reception, with 379 customers so far, many writing in to say how it has improved their test suites’ performance and readability. Additionally, this week I’m speaking at the second virtual DjangoCon Europe. My talk is at 9:15 am on Friday, on a topic related to the book: Speed up your tests with setUpTestData. If you’re attending, I look forward to seeing you there! (It’s still possible to buy tickets, and I believe it will be during the conference.) To celebrate these two occurrences, I’m offering a 33% discount on the list price of SUYDT. This takes it from $49 to $32, licensed for up to three developers. The discount lasts until the final day of DjangoCon Europe, Sunday the 6th June, “anywhere on Earth”. It also stacks with the regional discount of 50% off for those who live outside the GDP top 50. Find out more and buy on Gumroad. The current edition is based on Django 3.0 (and older). I’m partway through updating the content for changes up to Django 3.2, and should publish the update … -
How to use elided pagination in Django and solve too many pages problem
<![CDATA[ How to use elided pagination in Django and solve too many pages problem This is another short, sort of a reference post about pagination improvements in Django 3.2. Before we get started, let's go over the motivation. If you have like 15 pages of paginated stuff, then this isn't needed. But if you have like 100 or more, then the standard pagination looks comical. The standard UX for this is to show smaller range + a couple of pages on the end, to give indication as to how much stuff is there and then have ellipsis or something to signify that what's visible is not all. And thanks to Django 3.2 and its Paginator class, this functionality comes built-in. This will help you solve the problem of having too many pages to show in your pagination component. Basic usage The magic happens in the get_elided_page_range method on the Paginator. The basic usage looks like this: page = request.GET.get('page', 1) paginator = Paginator(articles, 40) page_range = paginator.get_elided_page_range(number=page) This attempt to get the page parameter from the URL query string, creates Paginator and finally gets the elided range. Basically "incomplete" page range. Parameters There are a couple of parameters to customize … -
Make Your First Python Game: Rock, Paper, Scissors!
How to make python Game: Rock, Paper, Scissors using Tkinter library Today we are going to create an interesting game application which is Rock paper scissor with, as always python and Tkinter library. It is simple, first, we create frames to separat... -
Designing A Geospatial Rest Backend Using GeoDjango
Ever wanted to build a system where you can process map data just like Google maps or Apple maps? We are going to do exactly just that in this article 🚀. First, we would look into some basics of geographic system terminology and then dive directly i... -
Creating a Boilerplate for the new Django Project
If you are familiar with the default folder structure of a new Django project then this article will be easier to understand. This article will not cover the basics of the project folder structure in the Django project. During my Django development e... -
Django Rest Framework Permissions example
In DRF We can use the permissions to implement RBAC (Role-Based Access Control). Role-Based Access Control is an approach that restricts access to users based on their role. You can use Django’s authentication and authorization features to configure ... -
Django Rest Framework Permissions example
In DRF We can use the permissions to implement RBAC (Role-Based Access Control). Role-Based Access Control is an approach that restricts access to users based on their role. You can use Django’s authentication and authorization features to configure ... -
Why Django Web development is Most popular for Backend Web development
The Reason Why Django Web development with Python is Most popular for Backend Web development In this competitive IT world there are many web developments available. In that case, the most challenge for web developers is to choose the right Technolog... -
FYP-DevLog-009
Progress Highlights Project Research / Discussion Received FYP monitoring feedbacks from panels (overall satisfactory!) Created a Google Doc to compile the FYP monitoring assessment results, comments and suggestions for improvement from panels and... -
OAuth2 in Python
This article first provides an overview of Oauth2 concepts and then looks at how to implement OAuth2 with OAuthLib. -
Changing to Full Stack
Hello everyone, TGIF!!!!!!! How was your week? I hope good. About a week ago, I decided to learn just PHP all over again. However, I had to change my plans. I've decided to learn the full pack. Yep! I want to be a full stack web developer and this t... -
Django News - Django IRC moves to Libera.Chat - May 28th 2021
News Django IRC Channels migration to Libera.Chat After being on FreeNode for many years, the Django IRC channels have moved over to the next-generation Libera.Chat platform. djangoproject.com htmx 1.4.0 has been released! htmx 1.4.0 features queued events, TemplateFraments, and a whole lot more. htmx.org Events Virtual DjangoCon Europe is June 2-6 DjangoCon Europe is a five-day international conference for the community by the community about the Django web framework, held each year in Europe. djangocon.eu Sponsored Link Seeking 5 beta users for feedback to improve Django Server Management SaaS project Last time, I was seeking 5 fellow Django devs to be beta users for my Django equivalent of Laravel Forge. I have spoken with 6 Django devs on Zoom. I hope to speak with 10 different Django devs total. If you're highly opinionated and enthusiastic about this area, go to https://bit.ly/gd-seeking-beta (notion doc) so I can get your feedback. greendeployhq.com Articles Using Django Check Constraints to Limit the Range of an IntegerField Another way to use database constraints via Django’s CheckConstraint class. adamj.eu Dockerizing Django with Postgres, Gunicorn, and Traefik A tutorial on how to set up Django with Postgres and Docker. For production environments, we'll add on Gunicorn, Traefik, … -
Python Convert Celsius to Fahrenheit
Python Convert Celsius to Fahrenheit Want to create python converter Celsius to Fahrenheit but don't know how to code? That's okay. Today I will show you how you can create Celsius to Fahrenheit converter using python and GUI library Tkinter. Start... -
Caktus Group - Tobias McNulty & Colin Copeland
Caktus GroupCaktus BlogAbout CEO Tobias McNultyAbout CTO Colin CopelandFollow Caktus on Twitter, Facebook, LinkedIn, and YouTubeCaktus on GitHubPair Programming During a PandemicDjango Ops TeamOpen Policing NCCode for DurhamSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider visiting LearnDjango.com, Button, or Django News. -
Introduction to Django ORMS
Hey there 👋 welcome, In this article, I'm going to be demystifying what ORM is in Django. There are two things I'm going to cover in this article: What is ORM? and Why ORM?. And of course, ORM means Object-relational mapper. The Django web framework... -
How to Simplify Django Migrations and Deployment
When removing fields from Django models, or adding non-nullable fields, it can be hard to avoid a mismatch between code running on some servers and the database in use. -
Best way to start a Django project
First the Philosophy Skip this para' if you want. Or, give 5 minutes of your life. If you want just to know something about Django goto listing that says ' Finally, how to start your project in the best way possible?' directly. Hey! Hope you're doing... -
My Software Estimation Technique
Last time, I explained that, although estimating software project timelines is hard, you should do it anyway. With that background, I want to go into some detail and share the technique I use when I need to develop a project timeline. I don’t believe there’s a single “correct” technique; this is one system that works well for me. However, my system does have one critical characteristic that I believe any effective estimation technique should have: it captures both time and uncertainty. -
Dockerizing Django with Postgres, Gunicorn, and Traefik
This tutorial details how to configure Django to run on Docker along with Postgres, Gunicorn, Traefik, and Let's Encrypt. -
Let's set up the Environment for Django
In this post, we will see how to set up the Environment for Django. the best setup gives us the best execution so before directly jumping into the coding environment set-up is the thing which is very crucial. Things we will cover in this post are P... -
An Introduction to The web framework for perfectionists with deadlines (Django)
In this post, we will be going to discuss one of the most used and fast-growing web framework i.e Django. Table of content What Is Django? What are the features of Django? What are the advantages of Django? Companies that uses the Django so, let's... -
Authenticate With Djoser
REST implementation of Django authentication system. djoser library provides a set of Django Rest Framework views to handle basic actions such as registration, login, logout, password reset and account activation. It works with custom user model. Req... -
Custom User Model In Django 3
In this post, we will see how we can define our own User Model and use it. and also what are the changes we have to make while registering Custom User Model. Django Built-in User Model is Good for normal cases. but what if you want to add some extra ... -
Async in Flask 2.0
This article looks at Flask 2.0's new async functionality and how to leverage it in your Flask projects.