Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django: How to send email without Celery
<![CDATA[ Django: How to send email without Celery I have to admit that I found sending emails in Django more difficult than I expected since other more complex stuff seemed easier. In this post, I want to share a lightweight approach that I am successfully using for a somewhat lower email volume. While the most basic solution is just sending email in your view code (before you return a response), this is problematic. It will make the response much slower, and if the email fails to send, you have no real means of sending it again. Management command + CRON to the rescue I am currently quite happy with basic management commands combined with CRON schedule that runs every few hours and sends emails. We can keep track of sent emails with records in the database. For example, when I send an email notification that a trial expires soon, I create a record in the database to ensure the email is not sent twice. The model looks something like this: class SentEmailRecord(models.Model): timestamp = models.DateTimeField(auto_now_add=True) email_type = models.CharField(blank=False, max_length=50) to_user = models.ForeignKey(to=CustomUser, blank=True, null=True, on_delete=models.SET_NULL) The email_type is just a field to save the type I have as a constant … -
Django News - DjangoCon Topic Suggestions - May 27th 2022
News PyCon US 2022 Recap and Recording Announcement All 101 PyCon US 2022 recordings are up now on YouTube. blogspot.com Need Suggestions for a DjangoCon US 2022 Topic? Suggestions for topics from the DjangoCon US team. Also applies to DjangoCon Europe! Reminder: DjangoCon US's CFP closes on Friday, June 10th. Reminder: DjangoCon Europe's CFP closes on Tuesday, May 31st. djangocon.us Sponsored Link gumroad.com Events DjangoCongress JP 2022 DjangoCongress JP is back this November. djangocongress.jp Articles Adding GraphQL to your Django App An overview with code snippets of the two main ways--Graphene and Strawberry--to add GraphQL support to an existing Django application. paltman.com Django Friday Tips: Less known builtin commands A look at several less-common Django management commands including diffsettings, sendtestemail, inspectdb, and showmigrations. ovalerio.net Python Standard Library changes in recent years While most attention goes to new features, this article focuses on standard library novelties introduced in Python versions 3.8–3.10. antonz.org Django + memcached + namespace A look at using namespaces to get around not being able to delete keys using a wildcard with memcached. dev.to The Django speaking tour 2022 Paolo Melchiorre takes us on his Django 2022 speaking tour across Europe. It was a fun read for those … -
Brew Install The World - Building SaaS with Python and Django #135
In this episode, I tried to get started after a long break, but my virtual environment was broken. This entire episode is a journey deep into Python installing world. Did I come out on the other side? Yes, we figured it out. You’ll have to watch (or skip to the end) to figure out what happened. :) -
Brew Install The World - Building SaaS #135
In this episode, I tried to get started after a long break, but my virtual environment was broken. This entire episode is a journey deep into Python installing world. Did I come out on the other side? Yes, we figured it out. You’ll have to watch (or skip to the end) to figure out what happened. :) -
The Django speaking tour 2022
Being a conference speaker gives me the opportunity to meet people, make new friends and visit new places. Having this opportunity is something I am truly grateful for. I tried to tell about my latest trip through Europe to talk about Python, Django and Community. -
Django 4.1 Preview - Jeff Triplett
Jeff Triplett personal siteDjango 4.1 release notes - UNDER DEVELOPMENTDjangoCon US Call for ProposalsDjango News newsletterawesome-djangoDjango for Professionals 4.0 UpdateDjangoX starter projectSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
Edgecase (kubernetes on the edge): morning summaries
(Some summaries of the May 2022 Dutch Edgecase meeting). Living on the edge - Gerrit Tamboer You can run kubernetes in a lots of places. Greenhouses, chip making machines, factories, etcetera. Connectivity. Plugging in a cable is the best case scenario. But perhaps you need VPN. Wifi is challenging. But perhaps also completely airgapped: no direct internet at all. Security. If you work in the cloud, security is much different from when lots of people could have direct hardware access to your equipment because it is in a factory or so. Are your disks encrypted? Unpredictability. On the edge, predictability is out the window. The situation can be quite diverse and weird. If you combine that with kubernetes' complexity: why would you do that? If you combine complexity and unpredictability, you get operational overhead. But that was the situation a few years ago. Now you have k3s. It changes everything. k3s, whether a node or a master, is a single binary. You can even run single-node clusters. k3s is great and easy. He did a quick demo. A master k3s in amazon and three battery-powered raspberry pi machines spread over the room running k3s. What they normally use to manage … -
Edgecase (kubernetes on the edge): afternoon summaries
(Some summaries of the May 2022 Dutch Edgecase meeting). Edge: the new data center - Chris Urwin Kubernetes is appealing on the edge. What every developer wants is a datacenter under their desk. With k8s (and especially k3s) they can. Kubenetes helps a lot by giving you a real, complete environment to manage your workloads. No more custom scripts to monitor whether your docker still runs and restart it if needed. That's all handled. The challenge about kubernetes: it is big and bloated. The solution for this is k3s which is a full, certified kubernetes distribution but easy and quick to install and maintain. Edge, what is it? To him, "anything outside of a data center" is edge. Near edge: telco, media, communications. Bigger deploys. Often you see kubernetes installs being offered instead of regular applications. Far edge: retail, banking, education, argriculture, utilities. Separate devices that need managing. K3S shines here (also in combination with "SLE micro"). K3s is really open source. Build and born in the cloud. The rest of suse Rancher is too. Lightweight cloud-native edge stack, reliable and secure edge inffrastructure. They aim at low maintenance. That "SLE micro": OS build for the edge. Enterprise-grade, but especially … -
Building a CRUD App with FastAPI, MongoDB, and Beanie
This tutorial looks at how to develop an asynchronous API with FastAPI, MongoDB, and Beanie. -
Mailbag: Dealing With Misalignment While Hiring
Answering a question from a reader: how do you deal with misalignment – arguments about skills, pay, etc. – when hiring? -
Django News - Django 4.1 alpha 1 released - May 20th 2022
News Django 4.1 alpha 1 released Django 4.1 alpha 1 is now available. It represents the first stage in the 4.1 release cycle and is an opportunity for you to try out the changes coming in Django 4.1. djangoproject.com Wagtail 3.0 release notes Wagtail 3.0 is live! This is a major update that has a page editor redesign, rich text block splitting, image duplication detection, and many more great features. wagtail.org Python 3.9.13 is now available The final regular maintenance release for Python 3.9. Starting now, the 3.9 branch will only accept security fixes and releases of those will be made in source-only form until October 2025. blogspot.com Sponsored Link Crunchy Bridge - Fully Managed Postgres as a Service crunchybridge.com Articles Django File (and Image) Uploads Tutorial Fully updated guide to managing media files in Django by building an Instagram clone. learndjango.com Recent objects using several Django models From Matthias Kestenholz, an article on the new package django-recent-objects which can combine, for example, recent articles and comments in a single activity stream. 406.ch Deploying Django To App Engine With Github Actions An in-depth guide to deploying a website with Google Cloud Platform App engine and performing migrations on a Cloud … -
Django for Professionals 4.0 Update
Changelog for the Django 4.0 update -
Professionalism: Honesty is a professional behavior
Dishonesty at work is wrong except when it isn’t. -
Mercurial Mirror For Django 4.1 Branch
The usual ‘production’ mirror for the recently announced Django 4.1. The URL (both web browsing and mercurial cloning) is https://hg.freehackers.org/mirrors/django-4.1-production The list of all mirrors is on this page -
A Django speaking tour: there and back again
Being a conference speaker gives me the opportunity to meet people, make new friends and visit new places. Having this opportunity is something I’m truly grateful for. I’ll try to tell my new journey through Europe to talk about Python, Django and Community. -
Django News - DjangoCon US/Europe Call for Proposals - May 13th 2022
News DjangoCon US Call for Proposals is Open! DjangoCon US is scheduled for October 16-21 in San Diego, CA. The deadline for proposals is June 10, 2022. pretalx.com DjangoCon Europe 2022 Call for Proposals DjangoCon Europe is happening September 21-25th in Porto, Portugal. The deadline for proposals is May 31, 2022. djangocon.eu Python Release Python 3.11.0b1 The first of four planned beta release previews for Python 3.11. This release is a feature freeze which means that no new features or APIs will be added to 3.11 and only bugfixes are allowed. python.org Sponsored Link gumroad.com Articles REPL Python programming and debugging with IPython IPython's powerful interactive prompt makes it a great tool for debugging Python code. Luke Plant demonstrates how. lukeplant.me.uk Django Testing Tutorial A comprehensive guide to testing Django applications. Covers creating/testing multiple static pages and a message board application. learndjango.com Announcing the PyOxy Python Runner PyOxy is a single file Python distribution and highly portable (C)Python distribution used for running Python interpreters. gregoryszorc.com Adding GraphQL to your Django App Patrick Altman shows us how to add GraphQL to your Django App using Graphene or Strawberry. paltman.com Celery Alternative for Django - Huey Trying out a lightweight asynchronous task … -
Recent objects using several Django models
Recent objects using several Django models I released a new Python package which builds on the excellent code published by Simon Willison in the blog post Building a combined stream of recent additions using the Django ORM. The rationale etc. for why this is useful is described much better by him and I’ll save everyone’s time by not repeating it in a worse way. The new package is django-recent-objects, developed on GitHub and available from PyPI. The package supports e.g. combining recent articles and comments in a single activity stream: from testapp.models import Article, Comment from recent_objects.recent_objects import RecentObjects ro = RecentObjects( [ { "queryset": Article.objects.all(), "date_field": "created_at", }, { "queryset": Comment.objects.all(), "date_field": "created_at", }, ] ) additions = ro.page(paginate_by=10, page=1) django-recent-objects adds the following features which aren’t available in the blogpost linked above: The name of the date_field doesn’t have to be the same for all objects Primary keys of different types are1 supported The code uses a real paginator and doesn’t only support fetching the first few objects Hopefully! ↩ -
Celery Alternative for Django - Huey
Trying out a lightweight asynchronous task queue as an alternative to Celery with Django -
Python Project Workflow
This article looks at how to configure GitHub Actions to distribute a Python package to PyPI and Read the Docs. -
Django News - Python in the Browser - May 6th 2022
News PyScript: Run Python in your HTML The most significant announcement to come out of this year's PyCon US is PyScript which runs Python in the browser. While still very new and very beta, PyScript has the potential to change how Python developers approach frontend development. pyscript.net What's New in Wagtail CMS Sign up for this event on either May 18th or 19th to see live demos of new functionality and features in Wagtail 3.0. wagtail.org Read the Docs newsletter - May 2022 If you have never checked out Read the Docs's newsletter updates then today is a good day to change that. Also, check out their May and April Changelogs to see 70+ features, updates, and bug fixes. readthedocs.com Sponsored Link Crunchy Bridge - Fully Managed Postgres as a Service crunchybridge.com Events Hybrid: IndyPy 15th Anniversary Celebration! May 10th at 7 pm ET, IndyPy will be hosting its first hybrid event since the pandemic. Please sign up for in-person or virtual attendance in advance. meetingplace.io Articles Django Static Files and Templates An updated guide to configuring static files and templates both locally and in production for a Django project. learndjango.com Pagination for a User-Friendly Django App How to implement … -
Star Wars and Django
Industrial Light and MagicPyCon Canada 2019: The backend of a global visual effects pipeline@andrecasp on TwitterAndre’s personal siteJames’s personal siteDjangoCon 2019: Using Django as a Micro-Framework by Carlton Gibsondjango-microframework repodjango-hijackSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter. -
Django News - Asynchronous QuerySets coming to Django 4.1 and PyCon US - Apr 29th 2022
News Django 4.1 will have an asynchronous interface for QuerySets! Very exciting news that Django 4.1, expected in August 2022, will have an asynchronous interface for QuerySets! github.com Read the Docs now supports custom build commands See https://twitter.com/readthedocs/status/1519363742869295105 for details readthedocs.io Sponsored Ad Datapane is Hiring Senior and Mid Django Developers Remotely Datapane is an open-source framework which makes it easy for data scientists to create reports, dashboards, and apps using Python. They are growing quickly and are hiring amazing Django developers to help build their report hosting and app execution PaaS. datapane.com Events PyCon US 2022 virtual tickets are still available! It's still not too late to attend PyCon US 2022 online with a virtual ticket. pycon.org PyOhio 2022 CFP closes May 2nd There is still time to submit a talk for PyOhio 2022 which closed on Math 2nd. They are accepting 5-minute and 10-15 minute talks which is a nice format for diving into details without a large time committment. pyohio.org Articles How to Version Control your Django project An introduction to version control and the best practices when it comes to Django projects. builtwithdjango.com Automate your Telegram channel with a Django Telegram Bot Have you ever wanted … -
User Requests - Building SaaS with Python and Django #134
In this episode, we took a break between big projects and worked on some smaller usability features requested by users of the app. -
User Requests - Building SaaS #134
In this episode, we took a break between big projects and worked on some smaller usability features requested by users of the app. -
Appliku - Kostja Palović
Appliku@KostjaPalovic on Twitter speedpycomdjangoxSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider purchasing a book, signing up for Button, or reading the Django News newsletter.