Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
PyGrunn: being a python developer in NL in 2021 - Emiel Kempen
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). He wants to show us some insights from the 2021 offerzen developer survey . (The report is open data, btw, so you can download the data and do your own analysis on it.) Background and education. Junior/senior: after 4 year, you're no longer a junior. Management roles start pick up after 6-10 years. Note: there are differences between countries. Salary: 32k for a junior, 47k intermediate, 60k senior, 73k tech lead/management. The rise in salary is pretty linear with your career progression. Degrees: 57% computer science. A massive amount (44%) is self-taught. 28% at school, 21% at university. People start coding young! 13-18 year is the most prevalent. 75% do some coding for fun outside of their jobs. Skills and learning The most promising industry: AI and cloud computing. (It is a bit weird that they're grouped together, perhaps). Python is the most desired language devs want to work with, followed by typescript and go. The most used languages are javascript, sql and typescript. Python is #4. Frequency of learning a new language: 30% every few months, 32% once a year and 33% every … -
PyGrunn keynote: make it work. fast. - Alexander Solovyov
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). He is the CTO of a big Ukraine fashion marketplace. 10-20k orders per day. So the talk is about them surviving load spikes and so. In 2016 they had a clojure/clojurescript/react single page app. They saw 30% more requests per second, which caused 3x the processor load. Bad news... One of the things he used was clojure.cache and picked the fast memory cache option. After finally reading the documentation, he discovered it was the cause of their problem. A cache call would fail, which would end up in a retry loop which would in effect cause almost an infite loop. Oh, and his son was only two weeks old and he was sleep-deprived. He managed to replace clojure.cache by memcached, which solved the problem. Halloween 2017. Wife in hospital. They started losing TCP packets... The main.js was barely loading which is bad in a single page web application :-) The processor load on the load balancers just kept increasing. One of the problems was the marketing department that recently added a fourth level to the menu structure of the website. Which resulted in a … -
PyGrunn keynote: learn pattern matching by writing a game - Łukasz Langa
(One of my summaries of a talk at the 2021 10th Dutch PyGrunn one-day python conference). Note: Łukasz Langa is the author of the wonderful black code formatter. Note 2: I made a summary of a different pattern matching talk last month. Łukasz started making a small game to learn about python 3.10's new pattern matching functionality. Actually programming something that you want to finish helps you to really delve into new functionality. You won't cut corners. One of the things he automated in the past was a system to manage his notes, for instance to export notes marked "public" to his weblog. His notes are all in git. Lots of notes. An advice unrelated to the rest of the talk: Keep notes. Own your data. Automate with python. He showed the source code for his simple game. One of the methods was 15 lines of an if/elif with some more nested if/else statements. if isinstance(...) and so. He then showed the same code with the new pattern matching of python 3.10. Matching on types, matching on attribute values. match and case may seem very weird now in the way they are implemented. But he thinks they can become pretty … -
From Beginner to Software Engineering Manager - Raymond Traylor
How to Become a Hacker by Eric RaymondTeach Yourself Programming in Ten Years by Peter NorvigDjango Vanilla ViewsscheduleCrayon.coSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider visiting LearnDjango.com, Button, or Django News. -
How to Setup Tailwind CSS with Django (Part 2)
Use python-webpack-boilerplate to jump start frontend project bundled by Webpack, and import Tailwind CSS -
Work Sample Tests: The tradeoff between inclusivity and predictive value
Good hiring processes try to maximize inclusivity and predictive value, but unfortunately, work sample tests bring these goals into conflict. There’s always a tradeoff between predictive value and inclusivity. The guiding principle of work sample tests is: construct a test that balances predictive value and inclusivity. Fair work sample tests will be predictive enough to give you a high degree of confidence that you’re making a good hire, while also being designed to be as accessible to as many candidates as possible. -
17 Django Project Ideas that can Make a Positive Impact around You
For more than a decade, I was focused only on the technical part of website building with Django. In the process, I have built a bunch of interesting cultural websites. But I always felt that those sleepless nights were not worthy of the impact. They say, "Don’t work hard, work smart!" I agree with that phrase, and for me it's not about working less hours. For me, it's working as much as necessary, but on things that matter most. So after years of collecting facts about life, I connected the dots and came up with make-impact.org – a social donation platform, which became one of the most important long-term projects. All my planning goes around this project. And I believe I am not the only programmer who sometimes feels that they want to make a positive impact with their skills. So I brainstormed 17 Django project ideas. You can choose one and realize it as a hobby project, open-source platform, startup, or non-profit organization; alone, with a team of developers, or collaborating with some non-technical people. Idea #1: Low Qualification Job Search The job market is pretty competitive, and not all people can keep up with the train. You could … -
17 Django Project Ideas that can Make a Positive Impact around You
For more than a decade, I was focused only on the technical part of website building with Django. In the process, I have built a bunch of interesting cultural websites. But I always felt that those sleepless nights were not worthy of the impact. They say, "Don’t work hard, work smart!" I agree with that phrase, and for me it's not about working less hours. For me, it's working as much as necessary, but on things that matter most. So after years of collecting facts about life, I connected the dots and came up with make-impact.org – a social donation platform, which became one of the most important long-term projects. All my planning goes around this project. And I believe I am not the only programmer who sometimes feels that they want to make a positive impact with their skills. So I brainstormed 17 Django project ideas. You can choose one and realize it as a hobby project, open-source platform, startup, or non-profit organization; alone, with a team of developers, or collaborating with some non-technical people. Idea #1: Low Qualification Job Search The job market is pretty competitive, and not all people can keep up with the train. You could … -
Work Sample Tests: Introduction to Work Sample Tests
Earlier this year, I wrote a series on interview questions. Good interview questions are one key to hiring well, but they’re not the only key. Today, I’m starting a new series on another critical factor in effective hiring: using work sample tests, aka practical exercises. This is part 1: what are work sample tests, and why do we need them? -
Adventures in Django: Django Unit Testing
This article assumes that you are familiar with the following:Continue reading on Medium » -
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 … -
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. -
Django for Beginners 3.2 Update
What's new in the book -
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.