Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
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. By using django-add-default-value and django-deprecate-fields to simplify the migration and deployment process, you will eliminate a common Django deployment headache. This has been a challenge for a while now. Believe it or not, Django ticket #470 has been open since 2005! Broken Columns Suppose you've removed one or more fields from Django models, maybe because you're cleaning up old code and they are no longer needed. Whatever the reason may be, Django will create migrations to remove those columns from their database tables. As soon as you run those migrations on any server, those columns will be gone from the database. This can be problematic because any servers running the older code that still references those columns will break. The Workaround There’s an interesting way to keep those columns from breaking. Using django-deprecate-fields makes it safe to migrate the database while all servers are still running old code. Instead of deleting the field from your model code, you wrap its definition in deprecate_field() like this: name = deprecate_field(models.CharField(max_length=50)) Then, makemigrations. deprecate_field … -
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. -
A simple guide on scaling and optimizing a Django application to the moon🚀
Django makes it easier to build better Web apps more quickly and with less code. Introduction: There are no doubts that Django is a well-structured, robust, and hell lot of maintainable web framework, which lets you focus on the real development, ra... -
Elastic Search + Django
##python #elsatic-search #haystack Requirements: Django Elastic Search Install (required version 6) Drf Haystack Poetry Install or you can use pip or pipenv Project Setup: $ mkdir dj_elastic && cd dj_elastic $ python3 -m venv env $ source env/bi... -
Django Engineer Interview Script
I have worked as a Python/Django backend engineer for more than a decade. Which puts me in a “senior” role in any team I usually join. As a result, I get involved in the recruitment process. I.e. to look for someone who would then become a team mate. This post is about questions I ask a prospective Python/Django backend engineer. A prospect with 2+ years of experience doing Python/Django backend development full-time. The prospective engineer would be working in my team. With me. Not for me. So the questions aim to help me to answer the fundamental “Would I want to work with this person?” question. Below I go through what I look for in each question. Note that unlike a “hackerrank” style assessment, these questions look for qualitative attributes. Answers do not have a completely correct/wrong answer. The way in which the candidate answers is more important than the answer itself. Self-intro Allow the candidate to go over their career trajectory. Have them delve deep into some projects they are proud to have been part of. Allow them to expand on specific processes/tools used. This will provide you with loose ends to relate the below questions with. Q1. How … -
Understanding select_related and prefetch_related in Django
When I started learning Django, the one thing that fascinated me a lot was the Django ORM. Maybe I was happy that I will not have to write SQL queries and can skip all the pain of writing crazy joins to fetch the data. I was throwing in objects.all()... -
Django News - Django 4.x Technical Board Election Results - May 21st 2021
News Django 4.x Technical Board Election Results A new technical board was elected for Django! djangoproject.com Sponsored Link Seeking 5 beta users for feedback to improve Django Server Management SaaS project This may be a bad idea. I'm seeking 5 fellow Django devs to be beta users for the Django equivalent of Laravel Forge or Rails Hatchbox. If you're highly opinionated and enthusiastic about this area, go to http://bit.ly/gd-seeking-beta (notion doc) so I can get your feedback. greendeployhq.com Articles Fluent in Django: Get to know Django models better A great look at Django models in this newest article in the Fluent in Django series from GirlThatLovesToCode. girlthatlovestocode.com Monitoring Django applications Paolo Melchiorre 🐍 A summary of different monitoring methods for Django projects from crowdsourcing to error checks to specialized tools. hodovi.ch Disabling FLoC, Google’s new advertising technology by Adam Johnson Google has started rolling out FLoC, currently to 0.5% of Chrome users, and some sites are already disabling it. In this post we’ll cover what FLoC is, who’s disabling it, why, and how to do so on a Django site. adamj.eu HTMX & Django—bringing the new school to the old school by Craig Anderson A nice using HTMX with Django … -
Per-visitor Data With Sessions
In the last Understand Django article, we saw what it takes to make your Django project live on the internet. Now, we’ll get back to a more narrow topic and focus on a way Django can store data for visitors to your site. This is the kind of data that doesn’t often fit well into your Django models and is called session data. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddleware Do You Go? -
Deploying a Django project on AWS Lambda using Serverless (Part 3)
To follow up my previous blog post I decided to show you how to update existing and create new AWS resources for a Django project using Terrafom (infrastructure-as-code). Terrafom is an open-source infrastructure as code software tool that provides a... -
Software Estimation Is Hard. Do It Anyway.
It’s well established that estimating software projects is hard. This is true, but you should learn how anyway. -
TravisCI & Flake8 with Docker for Test-Driven Development (TDD)
Django, as we know, is all-encompassing, with a DB with an ORM , Authentication system, Django Rest Framework , built-in tests, and a web server gateway interface, its a power-house of a framework for web development. Docker as we know changed t... -
2021 DBIR Highlights
The 2021 edition of Verizon’s Data Breach Investigations Report (DBIR) is out. I read the DBIR every year; it’s one of the only analyses of real-world security failures that approaches any sort of scientific rigor. Here are some of the highlight lights from the 2021 edition, along with my commentary. -
Django London Meetup 2021
The Django London Meetup group is a social meetup, that hold a gathering the 2nd Tuesday of each month.