Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
How to Use Semantic Versioning for Shared Django Apps
When you are building websites with Django, there is no need to track their software versions. You can just have a stable branch in Git repository and update the production environment whenever it makes sense. However, when you create a Django app or package shared among various websites and maybe with multiple people, it is vital to keep track of the package versions. The Benefits Versioning allows you to identify a specific state of your package and has these benefits: Developers can be aware of which package version works with their websites together flawlessly.You can track which versions had which bugs or certain features when communicating with open-source communities or technical support.In the documentation, you can clearly see which version of the software it is referring to.When fixing bugs of a particular version, developers of the versioned package have a narrower scope of code to check at version control commits.Just from the version number, it's clear if the upgrade will only fix the bugs or if it requires more attention to make your software compatible.When talking to other developers about a particular package, you can clearly state what you are talking about (yes, developers talk about software versions from time … -
Django News - Django 3.2.9 and Wagtail 2.15 - Nov 5th 2021
News Django bugfix release: 3.2.9 Django 3.2.9 fixes a bug in 3.2.8 and adds compatibility with Python 3.10. djangoproject.com Wagtail 2.15 Release Notes Wagtail 2.15 is out. Check out Highlights of Wagtail 2.15 for a peek at what's new. github.com Python Software Foundation News: The Python Software Foundation is searching for its next Executive Director The Python Software Foundation Board of Directors has begun the search for its next Executive Director. We’re looking for a leader who aligns with the PSF’s mission and is able to lead an established, successful and growing organization into its next stage. blogspot.com Events Python Web Conference 2022 - Call for Papers CFP closes on November 15, 2021. papercall.io 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 Weeknotes #42: What is Django 4.0? This is a weekly series from Django Fellow Carlton Gibson. Here he highlights the release process and the over 200 individual contributors to Django 4.0. Not bad for a project in its 17th year. noumenal.es Django for Beginners 3.2 Update Notes … -
Command Your App
In the last Understand Django article, we dug into file management. We saw how Django handles user uploaded files and how to deal with them safely. With this article, you’ll learn about commands. Commands are the way to execute scripts that interact with your Django app. We’ll see built-in commands and how to build your own. 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? -
Working With django-htmx - Building SaaS with Python and Django #119
In this episode, I added django-htmx to help finish off a bulk task deletion feature for my homeschool app. We explored the features that are available in django-htmx, and I showed how to add django-htmx to my project and fully integrate the package. -
Working With django-htmx - Building SaaS #119
In this episode, I added django-htmx to help finish off a bulk task deletion feature for my homeschool app. We explored the features that are available in django-htmx, and I showed how to add django-htmx to my project and fully integrate the package. -
Command Line for Beginners
The _command line_ is a powerful text-only interface for computers. If you have ever seen a show where hackers are furiously typing into a black window, that's the command line. … -
Question: Autocompleteselect in Django ModelForm
Hello everyone! I need to put an autocompleteselect field in read-only mode, when using the forms.modelform (admin.modeladmin) in edit, so that the user cannot change the recorded data the first time, I have found this method and it works very well: createonly_fields = ['document_type',] def get_readonly_fields(self, request, obj=None): readonly_fields = list( super(myFormAdmin, self).get_readonly_fields(request, obj)) createonly_fields = list(getattr(self, 'createonly_fields', [])) if obj: # editing an existing object readonly_fields.extend(createonly_fields) return readonly_fields but it only works with other fields type, could someone help me? I am working with Python 3.9 and Django 3.2 on Windows 10. I appreciate your help in advance. -
Deploying Self-Hosted GitLab CI Runners with Docker
This tutorial looks at how to deploy self-hosted GitLab CI/CD runners with Docker to DigitalOcean. -
A Django Rest Framework Guide
Introduction It is only common for a front-end part of an application to interact with web services and require data from them when creating an application. The interaction is made possible through an application programming interface (API) that acts as a mediator between the client-side of the application that requests the information, and the web services that provide responses in a data format like JSON, which can be interpreted over a variety of devices and languages. This article will guide us on how to precisely build a Rest API as we utilize the Django Rest Framework. Django Rest Framework (DRF) is built on the Django Framework and it is well recommended for web Rest APIs building, due to the flexible and powerful toolkit it provides. REST which is an acronym for representational state transfer is an architectural software style that stipulates designing and development guidelines of the Wide World Web architecture. This tutorial will use the Django Rest Framework to outline a step-by-step guide in creating such an API. Why Django Rest Framework? Django Rest Framework provides a number of advantages that make it preferable to other frameworks for building APIs. To mention but a few, It enhances usability … -
Django News - Django 4.0 beta 1 released - Oct 29th 2021
News Django 4.0 beta 1 released Django 4.0 beta 1 is now available. It represents the second stage in the 4.0 release cycle and is an opportunity for you to try out the changes coming in Django 4.0. djangoproject.com Events What’s New in Wagtail CMS: episode 5 A webinar all about what's new in Wagtail occurring on November 10th and November 11th. wagtail.io Python Web Conf 2022 Call for Proposals ends November 1st. papercall.io Sponsored Jobs Building Intelligent Space Infrastructure Cognitive Space is building intelligent infrastructure for the new space domain with Python at the core. We are looking for passionate Python developers in backend, dev ops, and machine learning. 🖖 cognitivespace.com Articles Profiling a Django App An overview of three tools--Pyinstrument, QueryCount, and Django Silk--for profiling your Django App. kracekumar.com Django HTMX Modal Popup Loveliness A pattern explained with code for providing Django modal popups via HTMX. andytwoods.com Tests aren’t enough: Case study after adding type hints to urllib3 Since Python 3.5 was released in 2015 including PEP 484 and the typing module type hints have grown from a nice-to-have to an expectation for popular packages. To fulfill this expectation our team... sethmlarson.dev Notes From the Meeting On Python … -
Mercurial Mirror For Django 4.0 Branch
The first beta for Django 4.0 was just announced, and it’s time for another ‘production’ mercurial mirror. The URL (both web browsing and mercurial cloning) is https://hg.freehackers.org/mirrors/django-4.0-production The list of all mirrors is on this page -
Fallback Offline Page in Django
Use Service worker to cache the offline page, and return the page when network is not available -
Mastering Django - Nigel George
DjangoBook.comMastering DjangoBuild a Website with Django 3Support the ShowThis podcast does not have any ads or sponsors. To support the show, please consider visiting LearnDjango.com, Button, or Django News. -
When you're a manager, your behavior is under a microscope
If you want to be a good manager, you need to accept that your behavior is under a microscope. You need to watch your behavior carefully and pay attention to what that behavior communicates. -
How To Create a Graphql API In Django Rapidly Using Graphene
-
Dear Potheads, You Can Work for the U.S. Government, Maybe
If you’ve used marijuana, can you still get hired by the Federal Government? Yes, but it’s complicated. I’ll try to explain… -
Deploying Self-Hosted GitHub Actions Runners with Docker
This tutorial looks at how to deploy self-hosted GitHub Actions runners with Docker and Docker Swarm to DigitalOcean. -
Django tip: Redirecting straight from urls.py
<![CDATA[ Django tip: Redirecting straight from urls.py This might be obvious to you if you are used to working with Class-based Views, but for me this was new and pretty cool. I wanted to redirect one URL to another view and before implementing lean function view with the redirect function, I decided to look if better solution exists.. And indeed it does. Meet RedirectView. You can use it inline in your urls.py to greatly simplify things. It can redirect either based on another route name or to any arbitrary URL. For example here is usage from my project: urlpatterns = [ path('', RedirectView.as_view(pattern_name='profile-detail', permanent=True)), ] These are URL patterns prefixed with account and I wanted the unspecified URL to redirect to account/profile which this accomplishes. The permanent settings dictate whether 301 or 302 is returned as a status code. Instead of pattern_name you can use url attribute and redirect to anywhere. Or you can pass None there to raise status code 410, which means that this URL is no longer available. And last attribute query_string lets us specify whether possible query string in the URL should be kept (True) or removed (False, default value). And that's it! This can be … -
Django News - DjangoCon US this Friday/Saturday - Oct 22nd 2021
News DjangoCon US - October 22-23 The major US Django conference is online and free this year. Talks premier October 22-23, 2021, and you can watch them by joining our YouTube channel today! djangocon.us Python Developers Survey 2021 Please take a moment to fill out the annual Python survey that helps guide development of the language and informs the community. jetbrains.com Psycopg 3.0 released A major update of the popular database adapter supporting Python 3.6-3.10 and PostgreSQL 10-14. psycopg.org PyPI User Feedback - Packaging - Discussions on Python.org Feedback is requested for users of PyPI. python.org Sponsored Jobs Building Intelligent Space Infrastructure Cognitive Space is building intelligent infrastructure for the new space domain with Python at the core. We are looking for passionate Python developers in backend, dev ops, and machine learning. 🖖 cognitivespace.com Articles Three more uses for functools.partial() in Django Adam Johnson on three more ways to use functools.partial() with Django. adamj.eu Help users change passwords easily by adding a well-known URL for changing passwords By redirecting requests to /.well-known/change-password to the change password URL, you can let users update their passwords easier than before. web.dev Django related fields and the caveats of implicit SQL INNER JOINs A … -
Add Service Worker to Django
Learn what is Service Worker and how to serve Service Worker in Django -
Bulk Delete Template - Building SaaS with Python and Django #118
In this episode, I worked on the bulk delete template that users will see when deleting tasks within the homeschool app. -
Bulk Delete Template - Building SaaS #118
In this episode, I worked on the bulk delete template that users will see when deleting tasks within the homeschool app. -
Simple Product Management Tricks
Three simple tricks product I’ve picked up that help me be more than completely useless when I need to wear a Product hat. -
Foss4g NL: afternoon session
(One of my summaries of a talk at the 2021 FOSS4G NL one-day conference). Fast "BGT" dataset import with Docker - Martijn van der Struijk (Note: the BGT (basisregistratie grootschalige topgrafie) is the Dutch database with all buildings, roads, waterways, etcin the whole country, including metadata). You can download the BGT via an API. Previously, you could only download the entire dataset. Now there's also a "delta" endpoint that allows only changes compared to your already-downloaded version. To handle all this, they made a "BGT loader" as a docker image. It can download the initial version + deltas. Output can be into postgis/oracle/SQLserver. They use it themselves to run it every night to update their database. He demoed it by downloading a fresh copy of all the data for the couple of kilometers around the conference location. Easy: just a single "docker" command. Nice. The tool stores the download-metadata (like the optional filter and the ID of the most recent change), so that a quick "download update" command is enough to update the current database contents. Landgoed cloud - Marco Duiker Landgoed provides foss geo services, consultancy training, etc. So one of the things they sometimes need is 20 new, … -
Django News - High Performance Django is Free Online - Oct 15th 2021
News DjangoCon US is next week! Thanks to our generous sponsors, DjangoCon US is free, online, and next week, October 22-23. If you would like to attend this year, this is also our last call for tickets. djangocon.us High Performance Django Is Free Online Our friends at Lincoln Loop wrote a book, High Performance Django back in 2014, and it's now is now available for free online. lincolnloop.com Wagtail 2.14.2 and 2.13.5 releases! New Wagtail 2.14.2 and 2.13.5 bug fixes. wagtail.io Events FlaskCon 2021 Our friends at FlaskCon have their CFP open through October 24th. flaskcon.com PyCon US 2022 website is live PyCon US 2022 will be in Salt Lake City, UT from April 27, 2022 - May 5, 2022. pycon.org Sponsored Jobs Building Intelligent Space Infrastructure Cognitive Space is building intelligent infrastructure for the new space domain with Python at the core. We are looking for passionate Python developers in backend, dev ops, and machine learning. 🖖 cognitivespace.com Articles Putting Pants On: One Thing We Did Right After 5 Years with Django A look at various improvements from moving a Django codebase to a monorepo using the Pants build framework. github.io Tips for debugging with print() Five tips from …