Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
First Major Model - Building SaaS #163
In this episode, we got to work on the core modeling for the application. I started by adding some visualization tooling to see the models in the system, then got to modeling of the primary Entry model that will be used throughout the app. Along the way, we set up the Django admin and did some automated testing. -
First Major Model - Building SaaS with Python and Django #163
In this episode, we got to work on the core modeling for the application. I started by adding some visualization tooling to see the models in the system, then got to modeling of the primary Entry model that will be used throughout the app. Along the way, we set up the Django admin and did some automated testing. -
How to Learn Django (Replay)
Learning Python via Django Considered HarmfulDjango Girls TutorialDjango for BeginnersInstall Python3 on Mac/Windows/Linuxawesome-django repodjango-vanilla-viewsClassy Class-Based Views siteDjango Deployment ChecklistGroupsDjango Users Google GroupStack OverflowSubreddits: LearningDjango and DjangoDjango MeetupsSHAMELESS PLUGSLearnDjango.comCarlton's website Noumenal -
2023 Python Software Foundation Board Nomination
My self-nomination statement for the 2023 Python Software Foundation (PSF) Board Election -
2023 Python Software Foundation Board Nomination
My self-nomination statement for the 2023 Python Software Foundation (PSF) Board Election -
Python Community News Interview
Interview I gave to the “Python Community News” channel regarding my self-nomination for the 2023 Python Software Foundation (PSF) Board of Directors elections. -
FeinCMS is a dead end (but feincms3 is not)
FeinCMS is a dead end (but feincms3 is not) I wouldn’t encourage people to start new sites with FeinCMS. Five years ago I wrote that FeinCMS is used in a few flagship projects which we’re still actively developing, which means that FeinCMS won’t be going away for years to come. That’s still true but less and less so. We’re actively moving away from FeinCMS where we can, mostly towards feincms3 and django-content-editor. FeinCMS lives on in django-content-editor and feincms3; not only in spirit but also in (code) history, since django-content-editor contains the whole history of FeinCMS up to and including the beginning of 2016. The implementation of FeinCMS is too expensive to clean up without breaking backwards compatibility. I still wish I had pursued an incremental way back then which would have allowed us to evolve old projects to the current best way of doing things (tm), but it didn’t happen and I’m not shedding too many tears about that since I’m quite happy with where we’re at today. That basically means that I won’t put any effort into bringing FeinCMS and django-content-editor closer together. I haven’t spent much time on that anyway but now my mind is made up … -
Streaming Protocols continued... RTMP, MMS
Audio streaming protocols explained with rtmp and mms in depth. We develop audio streaming services and we will setup your internet radio. -
Django - Database access optimization
Django - Database access optimization. Write the best query to reduce the time and improve the application performance. using select_related and prefetch_related will form sql query with joins. In some cases It will reduce extra queries to the database. -
What's great about Django girls to inspire women into programming
Django girls is a non-profit organization, that helps women to learn Django programming language and to inspire them into programming. -
Python development environment on windows
Python development environment on windows in an easy and simple way -
Streaming protocols ogg, mp3, aac
Audio streaming protocols ogg, mp3 and aac explained in simple and advanced methods. We develop internet radio stations and we can do it for you. -
Dynamically Adding Google Maps with Marker In Django
Dynamically Adding Google Maps with Marker In Django -
Linux, managing child processes executing concurrently
Concurrent processing is complicated, it’s better to avoid it when possible, but when there is a priority for faster execution or there is a need to have multiple functionalities(programs) simultaneously we have to go for it. Using ampersand(&) symbol we can run processes in background or subshell, this way they run concurrently. -
How to use gulpjs to Minify css, js and convert less, scss to css
Use gulpjs to Minify css, js and convert less, scss to css -
Python + Upsolver: Simplified Realtime Data Workflows
One of the powerful things about Python is its ability to connect disparate tools into one common integrated development experience. In this talk, we’ll explore how to create and run a near real-time pipeline where we consume events from a Kafka topic and transform the data before landing them in the lake, using Upsolver through our Python SDK. In this way, we get exactly-once processing, strong ordering and automatic schema evolution out of the box thanks to the powerful Upsolver engine, but without having to switch to a different UI and building in SQL only. -
Python + Upsolver: Simplified Realtime Data Workflows
One of the powerful things about Python is its ability to connect disparate tools into one common integrated development experience. In this talk, we’ll explore how to create and run a near real-time pipeline where we consume events from a Kafka topic and transform the data before landing them in the lake, using Upsolver through our Python SDK. In this way, we get exactly-once processing, strong ordering and automatic schema evolution out of the box thanks to the powerful Upsolver engine, but without having to switch to a different UI and building in SQL only. -
Usage and configuring i3 window manager in Ubuntu
This Article will explains you how to Configure and Use Window Manager in Ubuntu. -
How to monitor django application live events with sentry
Using Sentry you can easily track exceptions and events of a Django project. Know more about sentry configuration for a Django project -
Weeknotes (2023 week 24)
Weeknotes (2023 week 24)Life happened and I missed a month of weeknotes. Oh well. django-debug-toolbar 4.1 We have released django-debug-toolbar 4.1. Another cycle where I mostly contributed reviews and not much else. Feels great :-) Going all in on hatch and hatchling I got to know hatch because django-debug-toolbar was converted to it. I was confused as probably anyone else with the new state of packaging in Python world. After listening to a few Podcasts (for example Hatch: A Modern Python Workflow) I did bite the bullet and started converting projects to hatch as mentioned some time ago. I have converted a few other projects in the meantime because the development experience is nicer. Not much, but enough to make it worthwile. feincms3-sites is the latest package I converted. CKEditor 5’s new license and django-ckeditor The pressure is on to maybe switch away from CKEditor 4 since it probably will not be supported after June 2023. It’s totally understandable that the CKEditor 5 license isn’t the same as before, but I’m not sure what that means for the Django integration django-ckeditor which I’m maintaining since a few years. I don’t actually like the new capabilities of CKEditor all that much … -
Django News - Python 3.7 to 3.12 updates - Jun 16th 2023
News New Python 3.7 to 3.11 releases and 3.12.0 beta 2 are now available Another combined release of six separate versions of Python including 3.12.0 beta 2! blogspot.com PEP 703: Making the Global Interpreter Lock Optional (3.12 updates) A very informed discussion on PEP 703 to make the Python GIL optional. python.org Migrate your project to .readthedocs.yaml configuration file v2 An important deprecation announcement from ReadTheDocs: a .readthedocs.yml file will soon be required configuration on all projects. readthedocs.com Django Software Foundation Django Software Foundation June meeting minutes Meeting minutes for DSF Board monthly meeting, June 8, 2023. djangoproject.com Updates to Django Updates to Django Courtesy of Django Review and Triage Team Member Sarah Boyce... Last week we had 16 pull requests merged into Django by 11 different contributors - including 3 first time contributors! Congratulations to XDEv11, EBIBO, and Howard Cox for having their first commits merged into Django - welcome on board! This time there were even more accessibility improvements to the Django admin! For example, active row highlighting was added when in forced color mode. Did you know about forced color mode? I didn't! Love learning about how to make the web more accessible. github.com Sponsored Link Ready … -
Django: A security improvement coming to format_html()
Can you spot the problem with this Django snippet? from django.utils.html import format_html def user_snippet(user): return format_html(f"<em>{user.name}</em>") Well, the problem is that format_html() is passed an already-templated string! Its escaping ability is not being used. If the user name contains HTML, it will be injected into the final output: In [2]: user_snippet(User(name="<script>Bobby Tables</script>")) Out[2]: '<em><script>Bobby Tables</script></em>' Oh no! This is known as an XSS (cross-site-scripting) vulnerability. format_html() exists to protect against XSS, when used correctly. Here’s the correct way to use it: from django.utils.html import format_html def user_snippet(user): return format_html("<em>{}</em>", user.name) format_html() is passed the HTML template and the variables to add into it. It safely escapes any HTML characters in the variables. I’ve seen plenty of the misuse shown in the first pattern, with f-strings, str.format(), and %-formatting. It seems like an easy mistake to make, even an “attractive nuisance”. Two weeks ago, whilst at DjangoCon Europe, I proposed that Django deprecate the ability for format_html() calls without any arguments in Ticket #34609. The ticket was quickly accepted and Bhuvnesh Sharma picked it up and wrote the patch. Mariusz Felisiak reviewed and merged it in commit 094b0bea2c. Thanks both! Starting from Django 5.0, there’ll be a warning if you … -
CSS variables and immutability
Using CSS variables1 to ship customizable CSS in Django apps I have been working with SASS for a long time but have been moving towards writing CSS with a few PostCSS goodies in the last years. At first, I just replaced the $... with var(--...) and didn’t think much about it. The realization that CSS variables can be more than that came later. Edit basic values directly in the browser and immediately see the results! Change CSS depending on media queries or the cascade! With all that power came back the wish to not just ship backend and HTML code in Django apps I (help) maintain but also reusable CSS, with a few overrideable CSS variables for basic changes to the visual style. Loading .scss files from somewhere inside venv/lib/python3.11/site-packages/<package>/styles/ would of course have been possible, but very obscure. Also, not everyone puts their virtualenv at venv, the README instructions for those packages would quickly have become unwieldy. CSS variables paved the way for shipping CSS as a Django static file while still allowing customizability by leveraging the functionality of the browser itself instead of the frontend build toolchain. Patterns for overrideable values A pattern for defining defaults for CSS … -
Django QuerySets Tutorial
A [Django Queryset](https://docs.djangoproject.com/en/dev/ref/models/querysets/) is a collection of (SQL) [queries](https://docs.djangoproject.com/en/4.2/topics/db/queries/) from the database. It is a way to filter and order data that is then presented to the user, typically in … -
Django News - Django bugfix release 4.2.2 - Jun 9th 2023
News Django bugfix release: 4.2.2 Features 11 new bugfixes. See the complete notes for more. djangoproject.com Official Django Merchandise Did you know there is an official Django merchandise store? Represent Django in your community with a t-shirt, sweatshirt, hoody, or baby gear. All proceeds are donated to the Django Software Foundation. threadless.com “Boost Your Git DX” available in early access This is the latest book from Adam Johnson, a member of the Django 5.x Steering Council. His past books include Speed Up Your Django Tests and Boost Your Django DX. adamj.eu Updates to Django Django PRs this week Courtesy of Django Review and Triage Team Member Sarah Boyce... On the week starting May 29th, we had 11 pull requests merged into Django by 10 different contributors - including 5 first time contributors! Congratulations to Kacper Wolkiewicz, Christopher Cave-Ayland, AP Jama, Cheuk Ting Ho and Nina Menezes for having their first commits merged into Django - welcome on board! Included in this week were some accessibility improvements to the Django admin including enabling user zooming on mobile and adding icon descriptions in "Recent Actions" into 5.0. Big thank you to our accessibility team for helping our new contributors at the sprints! …