Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Limiting Content Types in a Django Model
This article looks at how to limit the content types in a Django model. -
Django News - Django 5.2 News - Aug 16th 2024
News PSF Community Service Awards to Kojo Idrissa! 🎉 Congratulations to Kojo Idrissa on his well-deserved Community Service Award. This award was given to Kojo for delivering insightful talks, organizing events like DjangoCon US, and engaging in discussions with developers and new Python developers. Kojo consistently champions the growth and inclusivity of the Python ecosystem. python.org Announcing PSF Fellow Members for Q1 2024! 🎉 Congratulations to Adam Johnson and Paolo Melchiorre on becoming PSF Fellows for 2024. blogspot.com DjangoCon US Keynotes: Natalia Bidart Django Fellow, Natalia Bidart, is keynoting DjangoCon US 2024 this fall. In-person and online tickets are available. djangocon.us VSCode Pre-Release of Running Tests Django tests are now supported in the VS Code Python extension! This is currently a pre-release, so we appreciate any users who can try it out and provide feedback or submit bugs. github.com Django Software Foundation DSF Board monthly meeting, August 8, 2024 Meeting minutes for DSF Board monthly meeting, August 8, 2024 djangoproject.com Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 18 pull requests merged into Django by 12 different contributors - including 2 first-time contributors! Congratulations to Jure Cuhalev and Farhan … -
More Go Standard Library - Building SaaS #198
In this episode, we continued the break from JourneyInbox to look through more of the Go standard library. In this session, we explored JSON serialization, Go template support, and embedding of static files for easy access. -
More Go Standard Library - Building SaaS #198
In this episode, we continued the break from JourneyInbox to look through more of the Go standard library. In this session, we explored JSON serialization, Go template support, and embedding of static files for easy access. -
PDF Text Extraction With Python
Is your data locked up in portable document format (PDFs)? In this talk we’re going to explore methods to extract text and other data from PDFs using readily-available, open-source Python tools (such as pypdf), as well as techniques such as OCR (optical character recognition) and table extraction. We will also discuss the philosophy of text extraction as a whole. -
PDF Text Extraction With Python
Is your data locked up in portable document format (PDFs)? In this talk we’re going to explore methods to extract text and other data from PDFs using readily-available, open-source Python tools (such as pypdf), as well as techniques such as OCR (optical character recognition) and table extraction. We will also discuss the philosophy of text extraction as a whole. -
Weeknotes (2024 week 33)
Weeknotes (2024 week 33) Partying It’s summer, it’s hot, and it’s dance week. Lethargy is over, Jungle Street Groove is coming up. Good times. Releases django-json-schema-editor 0.1: I have finally left the alpha versioning. I’m still not committing to backwards compatibility, but I have started writing a CHANGELOG. django-prose-editor 0.7.1: Thanks to Carlton’s pull request I have finally cleaned up the CSS somewhat and made overriding the styles more agreeable when using the editor outside the Django administration. The confusing active state of menubar buttons has also been rectified. Docs are now available on Read the Docs. django-imagefield 0.19: django-imagefield can now be used with proxy models. Previously, thumbnails weren’t generated or deleted when saving proxy models because the signal handlers would only be called if the sender matches exactly. I have already debugged this before, but have forgotten about it again. The ticket is really old for this, and fixing it isn’t easy since it’s unclear what should happen (#9318). django-canonical-domain 0.11: django-canonical-domain has gained support for excluding additional domains from the canonical domain redirect. django-canonical-domain is used to redirect users to HTTPS (optionally) and to a particular canonical domain (as the name says). But sometimes you have auxiliary … -
Django: create sub-commands within a management command
argparse, the standard library module that Django uses for parsing command line options, supports sub-commands. These are pretty neat for providing an expansive API without hundreds of individual commands. Here’s an example of using sub-commands in a Django management command: from django.core.management.base import BaseCommand class Command(BaseCommand): def add_arguments(self, parser): subparsers = parser.add_subparsers( title="sub-commands", required=True, ) recharge_parser = subparsers.add_parser( "recharge", help="Recharge the laser.", ) recharge_parser.set_defaults(method=self.recharge) shine_parser = subparsers.add_parser( "shine", help="Shine the laser.", ) shine_parser.add_argument( "--bright", action="store_true", help="Make it lighter." ) shine_parser.set_defaults(method=self.shine) def handle(self, *args, method, **options): method(*args, **options) def recharge(self, *args, **options): self.stdout.write("Recharging the laser...") def shine(self, *args, bright, **options): if bright: self.stdout.write("✨✨✨ Shine ✨✨✨") else: self.stdout.write("✨ Shine ✨") The add_arguments() method sets up two sub-parsers for different sub-commands: recharge and shine. They use a pattern recommended by the argparse add_subparsers() documentation, storing a function to call for the parser with set_defaults(). The second sub-parser for shine takes an optional --bright argument as well. The parser.add_subparsers() call sets required=True, which makes argparse show the command help and exit if no sub-command is provided. This means handle() is only called when a sub-command is selected, so its function signature can directly reference the method keyword argument. handle() only route to the correct … -
Django News - ✨ Django 5.1 is out! - Aug 9th 2024
News Django 5.1 released Django 5.1 was released, featuring the new LoginRequiredMiddleware for easier authentication and several accessibility enhancements, including improved screen reader support and more semantic HTML elements. There is also a querystring template tag simplifies query string handling in templates. djangoproject.com Django security releases issued: 5.0.8 and 4.2.15 The Django team has issued security releases 5.0.8 and 4.2.15, addressing multiple vulnerabilities, including potential memory exhaustion, denial-of-service attacks, and SQL injection risks; users are advised to upgrade immediately. djangoproject.com Python 3.12.5 released Python 3.12.5 is the latest maintenance release, containing more than 250 bug fixes, build improvements, and documentation changes since 3.12.4. blogspot.com PSF News: Security Developer-in-Residence role extended thanks to Alpha-Omega Thanks to continued support from Alpha-Omega, Seth Larson's role as Security Developer-in-Residence has been extended through the end of 2024, focusing on enhancing Python ecosystem security. blogspot.com Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 14 pull requests merged into Django by 10 different contributors - including 2 first-time contributors! Congratulations to Jeremy Thompson and Lucas Esposito for having their first commits merged into Django - welcome on board! Django 5.2 is introducing new form widgets: … -
Go Standard Library App - Building SaaS #197
In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. -
Go Standard Library App - Building SaaS #197
In this episode, we are taking a break from JourneyInbox and exploring what kind of Go app we can make by just using the Go standard library. -
An Opinionated Introduction to CI/CD
Continuous Integration / Continuous Delivery (or Deployment), CI/CD, is a set of practices used by engineering organizations to improve the quality of software they deliver, how fast they deliver that software, and detect issues with that software before they affect end users. Unfortunately, the term can mean a lot of different ideas and approaches. So, in this talk we’re going to try to unravel some of those ideas to give you some ideas on how you too can deliver software better. -
An Opinionated Introduction to CI/CD
Continuous Integration / Continuous Delivery (or Deployment), CI/CD, is a set of practices used by engineering organizations to improve the quality of software they deliver, how fast they deliver that software, and detect issues with that software before they affect end users. Unfortunately, the term can mean a lot of different ideas and approaches. So, in this talk we’re going to try to unravel some of those ideas to give you some ideas on how you too can deliver software better. -
Django News - Wagtail 6.2 Released / Python 3.13.0rc1 - Aug 2nd 2024
News Python Insider: Python 3.13.0 release candidate 1 released This is the first release candidate of Python 3.13.0. blogspot.com setuptools 72.0.0 removes the test command If you used setup.py test to test your Python packages, you will need to migrate to another test runner. After five years of deprecation warnings, the test command has finally been removed. pypa.io django-allauth 64.0.0 released A number of noteworthy changes in the most recent release of this popular package. allauth.org Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 22 pull requests merged into Django by 15 different contributors - including 4 first-time contributors! Congratulations to Muhammad N. Fadhil, Ellen, Lorenzo Peña and Csirmaz Bendegúz for having their first commits merged into Django - welcome on board! In Django 5.0.8, there is a bug fix which fixed a crash when creating a model with a Field.db_default and a Meta.constraints constraint composed of __endswith, __startswith, or __contains lookups. Also a regression in Django 5.0.8 and 4.2.15 that caused a crash in LocaleMiddleware when processing a language code over 500 characters. Django Newsletter Wagtail CMS Wagtail 6.2 Release There's a lot to love in the latest … -
Weeknotes (2024 week 31)
Weeknotes (2024 week 31) I have missed almost two months of weeknotes. I’ve got some catching up to do. I have tried writing a larger piece on my thoughts about CMS, but with everything going on in my personal and work life I haven’t made much progress. This weeknotes entry is me trying to get back into the groove of writing (and publishing!) regularly. django-prose-editor I have previously written about the ProseMirror-based editor for Django websites here. I have continued working on the project in the meantime. Apart from bugfixes the big new feature is the support for showing typographic characters. For now the editor supports showing non-breaking spaces and soft hyphens. The project seems to get a little more interest after the deprecation of django-ckeditor has become more well known and the project has even received a contribution by someone else. It’s always a lovely moment when this happens. django-json-schema-editor Still alpha. Updated the vendorized JSON editor and fixed the integration into Django to not throw errors with the newer version. Foreign key fields now support describing the referenced value similar to the raw ID fields functionality. Added optional support for using "format": "prose" to use the django-prose-editor to … -
Setting up DigitalOcean Spaces for Django Media
At DigitalOcean, when you need large amounts of static data (images, documents, or videos), you have two options: Volumes Block Storage and Spaces Object Storage. In case of Volumes, you mount an extra hard drive to your server and use the file system to manage your files. Whereas with Spaces, you store files in the cloud and use a special API to create, read and delete files there. Spaces Object Storage is comparable with AWS S3 Cloud Object Storage. It even supports the same API for dealing with data there. Here are some benefits of using Spaces: The price of Spaces is at least twice as low as the one of Volumes. Content Delivery Network (CDN) is available for media file caching. The configuration of Spaces is easier and the user interface is more user-friendly than the one of AWS S3. It is relatively easy to start using Spaces for media files with the django-storages package. I will walk you through setting up Spaces for your media files. Create Spaces Object Storage at DigitalOcean When creating Spaces Object Storage at DigitalOcean, you will be asked for these values: Data center - choose the one closest to your business for legal … -
Setting up DigitalOcean Spaces for Django Media
At DigitalOcean, when you need large amounts of static data (images, documents, or videos), you have two options: Volumes Block Storage and Spaces Object Storage. In case of Volumes, you mount an extra hard drive to your server and use the file system to manage your files. Whereas with Spaces, you store files in the cloud and use a special API to create, read and delete files there. Spaces Object Storage is comparable with AWS S3 Cloud Object Storage. It even supports the same API for dealing with data there. Here are some benefits of using Spaces: The price of Spaces is at least twice as low as the one of Volumes. Content Delivery Network (CDN) is available for media file caching. The configuration of Spaces is easier and the user interface is more user-friendly than the one of AWS S3. It is relatively easy to start using Spaces for media files with the django-storages package. I will walk you through setting up Spaces for your media files. Create Spaces Object Storage at DigitalOcean When creating Spaces Object Storage at DigitalOcean, you will be asked for these values: Data center - choose the one closest to your business for legal … -
Django News - Django 5.1 release candidate 1 released - Jul 26th 2024
News Django 5.1 release candidate 1 released Django 5.1 release candidate 1 is the final opportunity for you to try out a kaleidoscope of improvements before Django 5.1 is released. djangoproject.com Stack Overflow 2024 Developer Survey The most recent results show Django remaining one of the top web framework choices. stackoverflow.co Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 11 pull requests merged into Django by 7 different contributors - including 1 first-time contributor! Congratulations to Maryam Yusuf for having their first commits merged into Django - welcome on board! 🚀 In Django 5.0 a regression is fixed where ModelAdmin.action_checkbox could break the admin change list HTML page when rendering a model instance with a __html__ method. Do you want to follow Eliana Rosselli's path to becoming a new Django core contributor? Listen to her journey during her talk in DjangoCon Europe. Django Newsletter Sponsored Link Django for Beginners, Fifth Edition The fifth edition covering Django 5.x is now available! It includes loads of new content, including sections on Django architecture, a new Company Website project, full coverage of function-based and class-based views, testing, and a revised deployment guide. … -
Django News - DjangoCon US 2024 Talks - Jul 19th 2024
News Announcing our DjangoCon US 2024 Talks! The complete 2024 DjangoCon US talk and tutorial lineup is now live. DjangoCon US is from September 22nd to the 27th. djangocon.us PSF News: Announcing the 2024 PSF Board Election & Proposed Bylaw Change Results! The PSF membership approved all three bylaw proposals and elected three directors to the Python Software Foundation Board of Directors. blogspot.com Python 3.13.0 beta 4 released Python 3.13.0b4 is the final beta release preview of 3.13. blogspot.com PSF hires two new positions The Python Software Foundation announced hiring two new positions this week with PyPI Support Specialist and Infrastructure Engineer roles. Django Newsletter Updates to Django Today 'Updates to Django' is presented by Raffaella Suardini from Djangonaut Space! Last week we had 12 pull requests merged into Django by 10 different contributors - including 4 first-time contributors! Congratulations to Lucas Oliveira, brucejwb, wookkl and Daniel for having their first commits merged into Django - welcome on board! Inside the Forum there's an interesting idea to simplify generating date range reports using Postgress' generate_series(). Join the conversation. Did you miss Djangocon Europe this year? See the talks here Django Newsletter Sponsored Link Django for Beginners, Fifth Edition The fifth … -
Activation Email Job - Building SaaS #196
In this episode, we chatted about managing dependencies and the cost of maintenance. Then we got into some feature work and began building a job that will send users an email as reminder to activate their account shortly before it expires. -
Activation Email Job - Building SaaS #196
In this episode, we chatted about managing dependencies and the cost of maintenance. Then we got into some feature work and began building a job that will send users an email as reminder to activate their account shortly before it expires. -
Database Design Tutorial for Beginners
Databases are at the heart of every web application. Their design, or schema, is literally the blueprint for how all information is stored, updated, and accessed. However, learning about databases … -
Is Django a Full Stack Framework?
The title of this post, "Is Django a Full Stack Framework?" is a question I receive often from new web developers. It's a very valid question so I wanted to … -
Trailing URL Slashes in Django
Among Django's many built-in features is [APPEND_SLASH](https://docs.djangoproject.com/en/dev/ref/settings/#append-slash), which by default is set to `True` and automatically appends a slash `/` to URLs that would otherwise [404](https://en.wikipedia.org/wiki/HTTP_404). **Note**: The Chrome web … -
What is Django (Python)?
[Django](https://djangoproject.com) is an open-source web framework written in the [Python](https://www.python.org) programming language. Named after the jazz guitarist [Django Reinhardt](https://en.wikipedia.org/wiki/Django_Reinhardt), it is used by some of the largest websites in the …