Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Work Sample Tests: Bring Your Own Code
If you’re hiring engineers, some candidates will already have code they can share: side projects, open source, and so on. It’s silly to ask those candidates to write new code just for your interview if they already have code they can share. So, if you’re asking candidates to code as a work sample test, you should also offer to let candidates submit something they’ve previously written. Here’s how. -
Django News - Django, HTMX and Alpine.js - Dec 3rd 2021
News Loren Crary has joined the PSF as its Director of Resource Development Financial sustainability is critical to the Python Software Foundation (PSF), and the entire Python ecosystem as Python grows in popularity. The PSF welcomes Loren Crary as our new Director of Resource Development! blogspot.com Sponsored Link Using Django with Pants Pants is a cutting-edge build system with strong support for Python. See how Pants can help streamline your Django-based projects, especially when you have multiple services in a single shared codebase. github.io Articles Using PostgreSQL Views in Django Views in PostgreSQL allow you to query against the results of another query. This article is a look at two different types of Postgres views and how to decide when and if you should use them in a Django app. pganalyze.com The Well Maintained Test An article on building out a tool to programmatically answer the 12 questions from Adam Johnson's blog post on deciding whether a new package is well-maintained. ryancheley.com Encrypted Data Archives With Django And Backblaze B2 Implementing a user data export feature to a Django project with Backblaze B2 cloud storage (similar to Amazon S3) which also supports server side encryption that allows your data to … -
Customer Requests - Building SaaS with Python and Django #121
In this episode, we started by trying to add django-auto-prefetch. Unfortunately, it didn’t work well for my app. I decided to stop trying to add that package and switched to working on a feature request of one of my customers. -
Customer Requests - Building SaaS #121
In this episode, we started by trying to add django-auto-prefetch. Unfortunately, it didn’t work well for my app. I decided to stop trying to add that package and switched to working on a feature request of one of my customers. -
Reproducible Builds with Bazel
This article looks at how Bazel can be used to create reproducible, hermetic builds. -
Work Sample Tests: Pair Programming
Coding homework is my default work sample test: I use it for all engineering roles unless it’s obvious that another kind of exercise is better. There are good reasons to make homework-style work sample tests the default: they’re relatively easy to construct, they scale reasonably well to large hiring rounds, they’re accurate simulations of real work, and easier than most other kinds of tests to construct in a way that maximizes inclusivity. Here’s how to conduct a coding homework work sample test. -
Deploying a Node App to Google Cloud with Kubernetes
This tutorial demonstrates how to deploy a Node microservice to a Kubernetes cluster on Google Kubernetes Engine. -
Dynamic Secret Generation with Vault and Flask
In this tutorial, we'll look at a real-world example of using Hashicorp's Vault and Consul to create dynamic Postgres credentials for a Flask web app. -
Render Django Form with Tailwind CSS Style
-
Django News - Django 4.0 release candidate 1 released - Nov 24th 2021
Introduction Early release this week We're releasing the newsletter two days early this week. Back to the normal schedule next week. django-news.com News Django 4.0 release candidate 1 released Django 4.0 release candidate 1 is the final opportunity for you to try out the abundance of new features before Django 4.0 is released. djangoproject.com 2022 Django Software Foundation Board Nominations Anyone including current Board members, DSF Members, or the public at large can apply to the Board. It is open to all who wish to participate. Please fill out the application form by November 30th, 2021 AoE to be considered. Once we have our candidates we will open a week-long voting period. djangoproject.com 🎁 Django-related Deals for Black Friday and Cyber Monday Multiple deals on Django books and projects. adamj.eu GitHub Actions: setup-python now supports dependency caching You can now run workflows for Python projects faster on GitHub Actions by enabling dependency caching on the setup-python action for both pip and pipenv projects. github.blog Sponsored Link Using Django with Pants Pants is a cutting-edge build system with strong support for Python. See how Pants can help streamline your Django-based projects, especially when you have multiple services in a single shared … -
Optimizing Django Queries - Jamie Matthews
dabappsJamie on GitHub and TwitterUnpolydjango-readersdjango-zen-queriesdjango-rest-framework-serialization-specdjango-db-queuedjango-log-request-idDjango Views - The Right Way by Luke PlantDjango Vanilla Views by Tom ChristieBlack Friday Sale50% off the list price of the books Django for Beginners/APIs/Professionals by William Vincent, co-host of this podcast and current Django Software Foundation Board Member. Offer valid through Friday, November 26th, end of day. -
Work Sample Tests: Coding “Homework”
Coding homework is my default work sample test: I use it for all engineering roles unless it’s obvious that another kind of exercise is better. There are good reasons to make homework-style work sample tests the default: they’re relatively easy to construct, they scale reasonably well to large hiring rounds, they’re accurate simulations of real work, and easier than most other kinds of tests to construct in a way that maximizes inclusivity. Here’s how to conduct a coding homework work sample test. -
How Django Got Its Name
Pictured: From left to right, musicians Sebastian Peszko, Francisco Batista, and Filippo Dall'Asta in Berlin, Germany. In early November, my husband and I celebrated a friend’s birthday with dinner and a show. The birthday boy has eclectic tastes and it’s always a treat to be included in his plans. Little did I know, however, that our night out in Berlin, Germany, would be related to my day job with Caktus, which is of course, based in Durham, North Carolina ... As a side note, I’ve been working remotely from Berlin since August 2021. Our group showed up at 800A Bar & Cabaret a bit late, so the music had already started. Onstage were guitarists Filippo Dall'Asta and Francisco Batista, plus Sebastian Peszko on the viola. The music seemed familiar but I couldn’t quite place it until my husband realized it was similar to the original theme from the TV show “Monk”! The musicians were incredibly talented and we had a very enjoyable evening listening to them as well as the jam session later featuring various local artists. Though I was unfamiliar with this style of music, I was familiar with the name Django Reinhardt as I had read a little … -
Django News - 2022 Django Software Foundation Board Nominations - Nov 19th 2021
News 2022 Django Software Foundation Board Nominations Anyone including current Board members, DSF Members, or the public can apply to the Board. It is open to all who wish to participate. Please fill out the application form by November 30th, 2021 AoE (anywhere on earth) to be considered. Once we have our candidates, we will open a week-long voting period. djangoproject.com Nominations for 2021 Malcolm Tredinnick Memorial Prize It is that time of year again when we recognize someone from our community in memory of our friend Malcolm. We will take nominations until Thursday, November 26th, 2021 AoE. djangoproject.com Python 3.9.9 hotfix release is now available Python 3.9.9 is the eighth maintenance release of the legacy 3.9 series. blogspot.com Sponsored Link Using Django with Pants Pants is a cutting-edge build system with strong support for Python. See how Pants can help streamline your Django-based projects, especially when you have multiple services in a single shared codebase. github.io Articles Selecting a programming language can be a form of premature optimization Brett Cannon, a Python Core Developer, shares his thoughts on choosing a programming language for your next project. snarky.ca 17 Django Project Ideas that can Make a Positive Impact around You … -
The Evennia blog has moved to evennia.com!
This dev blog has moved! All past and future posts will now be found here instead on evennia.com. The linked post discusses the move in more detail, including the little custom blog platform I wrote for it.The old posts here on blogspot/bloggly will remain but won't be updated anymore.Cheers,Griatch -
How to Ditch Codecov for Python Projects
Codecov’s unreliability breaking CI on my open source projects has been a constant source of frustration for me for years. I have found a way to enforce coverage over a whole GitHub Actions build matrix that doesn’t rely on third-party services. -
Scheduling Bugs - Building SaaS with Python and Django #120
In this episode, I debugged a deep scheduling bug that was tricky to track down and understand. -
Scheduling Bugs - Building SaaS #120
In this episode, I debugged a deep scheduling bug that was tricky to track down and understand. -
Optimize Tailwind CSS in Django
Optimize Tailwind using PurgeCSS, and make web page auto reload on code change during development -
A Framework for Good Work Sample Tests: Eight Rules for Fair Tests
What makes a work sample test “good” – fair, inclusive, and with high predictive value? Here’s my framework: eight principles that, if followed, give you a great shot at constructing a good work sample test. -
Django News - Malcolm Tredinnick Memorial Prize Nominations - Nov 12th 2021
News Nominations for 2021 Malcolm Tredinnick Memorial Prize The Malcolm Tredinnick Memorial Prize is a monetary prize, awarded annually to the person who best exemplifies the spirit of Malcolm’s work - someone who welcomes, supports, and nurtures newcomers; freely gives feedback and assistance to others, and helps to grow the community. The DSF will take nominations until Thursday, November 26th, 2021, AoE and announce the winner soon after the next DSF Board meeting in December. djangoproject.com Wagtail 2.15.1 Bugfix Release Wagtail 2.15.1 is a bugfix release. github.com Python 3.9.8 and 3.11.0a2 are now available Python 3.9.8 and 3.11.0a2 are now available. blogspot.com Events PyCon US 2022 - Call for Proposals CFPs are open until December 20th. Django is typically underrepresented in PyCon tutorials talks, so please consider submitting one if interested! pycon.org PGConf NYC 2021 PGConf NYC 2021 returns December 2nd and 3rd in New York City. pgconf.nyc Sponsored Link Using Django with Pants Pants is a cutting-edge build system with strong support for Python. See how Pants can help streamline your Django-based projects, especially when you have multiple services in a single shared codebase. github.io Articles How Async Should Have Been A fascinating examination of how async is implemented … -
PyGrunn: setting up new developers for success - Marijke Luttekes
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). Get your house in order first. Before you can start training people, you need to have an onboarding strategy in place. Make sure you've got that beforehand. You also need your communication tools to be ready. Oh, and documentation is important! It is good in general, but there's a specific advantage during onboarding: if you've got it, new developers get an opportunity to be more independent and to look things up for themselves Let us get started guiding new devs. Psychological safety is important: you need to feel safe. Safe to talk about mistakes, safe to make suggestions. If you're the senior: keep in mind your position of power. If you say something, a junior developer might think it is The Law. What you don't want: a clone of yourself! It is good for a company to have diversity. Bring the new developer with you to meetings. And let them speak! (So try to shut up a bit yourself). Success is a team effort - and so is failure. New developers need feedback. Compliment in public, negative feedback in private. Oh, and make an … -
PyGrunn: live blogging with wagtail - Coen van der Kamp
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). Wagtail (https://wagtail.io/) is a nice CMS layer on top of django and python. Wagtail is special in that it doesn't have a build-in user-facing front end. You are invited to build your own that perfectly suits your needs. Wagtail is opinionated in that sense. It does have a nice admin interface for adding content. Through google summer of code, an earlier idea he had on live blogging was added to wagtail. It is intended for live blogging a sports match, for instance. Lots of small messages. It can grab input from slack or telegram. Of course, you can also use the admin interface or a REST api. There is a bit of a workflow mechanism. You perhaps want to format the first line of an incoming message as a title. There are multiple ways to set up the blog-viewing webpage. Interval polling, long polling, websockets. Websockets are the best option, but it takes more setup effort. Interval polling is the easiest option: just plain http. https://wagtaillive.fourdigits.nl/pygrunn/ is where they do some test live blogging of this conference. The project lives at https://github.com/wagtail/wagtail-live -
PyGrunn: large scale python satellite image processing - Ivor Bosloper
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). Satellites. There are almost 3000 satellites orbiting the earth. Some of them have cameras, which are the interesting ones for him. He started Dacom (now CropX), agricultural software. Satellite imagery is interesting for farmers as you can see how well the crops are growing by analyzing the images. He did a live demo. They have a website with all 800.000 fields in the Netherlands. For every field they have image data. They can show it both as a regular image, but also color-coded for amount of greenery. And of course a nice graph throughout the year. You can do all sorts of analysis on it. Look at the variation in crop yields within the field, for instance. You might have to use more fertilizer in the low-yield areas. But you also have to use other data sources, like an elevation map. They started out experimentally with groenmonitor.nl in 2014. In 2015, ESA launched the "Sentinel 2a" satellite (with a twin, "2b", in 2017). The data is free, part of the EU Copernicus project! They started using the data in 2016. The images are huge … -
PyGrunn: don't trust your coverage report - Olga Sentemova
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). How do we know if our code works? Perhaps the requirements you were given were unclear. Perhaps there simply is an error in your code. Perhaps your software is used in the wrong way. There are many sorts of tests. The one she focuses on is unit tests, the one we have the most influence on as programmers. You can use a traceability matrix where you put every individual part of the requirements ("division by zero results in an error") in columns. In the rows you mention the tests that verify the specific requirement. Lots of work, perhaps only needed for medical equipment. You're also restrained by the (in)completeness of the requirements. And it is a manual process... You can also use coverage.py, which checks how many lines of your code are covered/executed by your tests. When you run coverage, you should configure it properly, so that it only reports your python files. You don't want to include the standard library or an external library in your report. Also exclude your test files from the report, as they normally have 100% test coverage and …