Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Configuring Django backends using speckenv’s 12factor support
Configuring Django backends using speckenv’s 12factor support There are many many 12factor utility apps available to configure databases, caches and the email backend in Django apps, for example dj-database-url, django-cache-url and dj-email-url. As I wrote in my 2020 blog post Using environment variables to configure Django I liked using them – a lot. However, this has changed a bit because I don’t like the fact that all released versions of those libraries modify the urllib.uses_netloc list with their own protocols (when it’s not necessary at all) and I don’t like it either that some bugs still exist in some libraries which make upgrading projects in our environments from Django 3.2 to Django 4.0 harder than it should be; the problem isn’t really caused by Django’s new built-in features but rather surfaced by it. Anyway, since I already had a library which helped reading settings from the environment, adding another utility which transforms DSNs to configuration dictionaries understood by Django was straightforward. And that’s why I’m now happily using speckenv’s Django support for those use cases. Reducing the amount of dependencies in a project maybe shouldn’t be a goal in itself, but replacing generic utilities with more opinionated utilities is certainly … -
Easier Crediting of Contributors on GitHub
Git has the concept of co-authors of a commit. You’ve probably seen it in the web UI, when multiple people are listed to have committed something. I want to be gracious with credit where it’s due and I’ve found ways to make it easier. -
Teacher Checklist Editing - Building SaaS with Python and Django #141
In this episode, I returned to the teacher checklist feature and started work on the edit page that will allow users to customize what they see on the checklist. -
Teacher Checklist Editing - Building SaaS #141
In this episode, I returned to the teacher checklist feature and started work on the edit page that will allow users to customize what they see on the checklist. -
Django's Async Future - Tom Christie (Ep46 Replay)
Tom Christie personal siteEncodeDjangoCon Europe 2019 - Sketching out a Django redesignDjangoCon US 2019 - Just Add Await: Retrofitting Async into DjangoDjango REST FrameworkMkDocsmkautodocHTTPXurllib3Starlettehostedapi - demo app built with StarletteSupport 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. -
Generating XLSX (or CSV) from the Django admin (or elsewhere)
Generating XLSX (or CSV) from the Django admin (or elsewhere) The blog post Django: excel output instead of csv inspired me to write about my own experience with XLSX or CSV generation. XLSX export For a long time I used similarly structured ad-hoc code built on xlwt, a project which looks abandoned these days. I have been a more or less happy user of openpyxl during the last years and intend to continue using it. Something which I (or rather my users) require often is a way to export a list of selected objects from the Django admin. A good way to achieve this is by using an admin action. The common use case is that I have to export all model fields and maybe some additional data. xlsxdocument makes this very easy, all you have to do is: from django.contrib import admin from xlsxdocument import export_selected from app import models @admin.register(models.Example) class ExampleAdmin(admin.ModelAdmin): actions = [export_selected] If you wanted more control and wanted to add an additional field at the end you could write your own view (or embed the code in your own action, see the Django docs for this): from xlsxdocument import export_selected from app.models import Example … -
Understanding async Python for the web
Recently Django 4.1 was released, and the thing most people seem interested in is the expanded async support. Meanwhile, for the last couple years the Python web ecosystem as a whole has been seeing new frameworks pop up which are fully async, or support going fully async, from the start. But this raises a lot of questions, like: just what is “async” Python? Why do people care about it so much? And is it really … Read full entry -
Django: excel output instead of csv
Ten years ago I made a time registration system for our company. Yeah, I know. Time registration systems are what everybody writes just for themselves instead of using one of the existing ones. Custom wishes: the same old excuses :-) But it was good fun to build and still is. At that time it was becoming popular to build the frontend in javascript. So I build it with pure, unashamed django templates. Custom template tags for formatting; formsets; the whole hog. After ten years, the website is still in heavy use, with only minimal work needed. Well, a bit too minimal: recently I really had to update the site as it was still running on python 3.5 and django 1.8. As it was pretty standard django, updating wasn't that hard. (I gave a talk about upgrading old django websites with docker recently, which might be interesting). The old CSV export Such a time registration system needs to output reports. Lots of different reports. I picked plain *.csv for that, as at the time there wasn't a handy xls exporter yet. The best one at the time needed you to install openoffice on the webserver, which wasn't ideal. Probably due to … -
Django News - DjangoCongress JP 2022 Call For Proposals - Aug 12th 2022
News PostgreSQL: PostgreSQL 14.5, 13.8, 12.12, 11.17, 10.22, and 15 Beta 3 Released! The PostgreSQL Global Development Group has released an update to all supported versions of PostgreSQL, including 14.5, 13.8, 12.12, 11.17, and 10.22, as well as the third beta release of PostgreSQL 15. postgresql.org Sponsored Ad Django GDPR Cookie Consent Highly customizable Django app to make your Django website compatible with GDPR Cookie law. gumroad.com Events DjangoCongress JP 2022 Call For Proposals (last call) DjangoCongress JP 2022 is on Saturday, November 12th, and their CFP is Friday, August 12th. google.com Articles How To Add a Text Editor To A Django Blog With Summernote Quickly add a powerful text editor to a Django blog app with Summernote. ctrlzblog.com How to find the number of items on the ORM queue using Django-Q A quick guide to exploring an ORM queue with the powerful Django-Q third-party package. djangoandy.com Class-based vs Function-based Views in Django A thorough article looking at the differences between Django's class-based views (CBV) and function-based views (FBV). testdriven.io Tutorials Integrating Mailchimp with Django A look at how to integrate Mailchimp with Django in order to handle newsletter subscriptions and send transactional emails. testdriven.io Videos Django-Sesame - Magic URLs … -
pip-tools Supports pyproject.toml
pip-tools is ready for modern packaging. -
Taking notes in interviews
Short summary for the index page here. -
Integrating Mailchimp with Django
This article looks at how to integrate Mailchimp with Django for newsletters and transactional emails. -
Imageview customization (circular image view)
In android designing we'll come across ImageView. An ImageView displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the image so that it can be used in any layout manager, and provides various display options such as scaling and tinting. it is recommended to customise it through bitmaps(BitMap in android) instead of reshaping the image manually. -
7 Mistakes to Avoid while Building a Mobile Application in 2021
Mobile application development, the developers create many applications everyday, but not all apps are appreciated.7 mistakes to avoid in app development. -
Django Template Language Intro
We can write the required logics based on programming[python] syntax in models and views but, when we want to write simple logics we should follow the django's template syntax, because programming[python] syntax is not allowed. -
Django News - Django 4.1 Released - Aug 5th 2022
News Django 4.1 released!!! The release notes cover the profusion of new features in detail, but a few highlights are: An async interface to the ORM, and the ability to define async handlers on class-based views. The use of ORM-defined database constraints in model validation. Better form rendering accessibility and output style customization. djangoproject.com Django security releases issued: 4.0.7 and 3.2.15 This release fixes a file download vulnerability in FileResponse. We encourage all users of Django to upgrade as soon as possible. djangoproject.com Python 3.10.6 is available Python 3.10.6 is the newest major release of the Python programming language, and it contains many new features and optimizations. blogspot.com Sponsored Ad Django for Beginners/APIs/Professionals Level up your Django knowledge with Django for Beginners, Django for APIs, or Django for Professionals. Sample chapters are available to preview for free. learndjango.com Articles How to Combine Frontend and Backend (For Python Web Developers) A look at six different ways to combine back-end and front-end for Python developers with an analysis of the pros and cons for each approach. accordbox.com Django and SQL: Your Dynamic Duo for Scaling Databases An overview of managed hosting services for SQL, Redis, and other services. linode.com How to use … -
Django 4.1 Preview - Jeff Triplett (Ep 115 Replay)
Django 4.1 releasedJeff Triplett personal siteDjangoCon 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. -
How to Combine Frontend and Backend (For Python Web Developers)
After reading, you will know the six solutions to combine the frontend and backend, and the pros and cons. -
Class-based vs Function-based Views in Django
This article looks at the differences between Django's class-based views (CBV) and function-based views (FBV). -
Announcing django-denied
I have paranoia when it comes to my Django app. I run a homeschool scheduling service called School Desk. My Software as a Service (SaaS) lets families plan their homeschool activities. Since the app deals with data about students (including my kids!), it’s important to me that every user’s data is protected, so that users can only view their own information. When I designed the system, I picked a shared Postgres schema (i. -
Django News - Python 3.11.0b5 and a new Wagtail CMS book - Jul 29th 2022
News Wagtail CMS in Action Kalob Taulien is the author of Learn Wagtail and many other great courses. His new book, Wagtail CMS in Action, is in progress and available for 40% off now. You can read the first two chapters for free. manning.com Python Insider: Python 3.11.0b5 is now available Python 3.11.0b5 is the last* beta for Python 3.11. blogspot.com Help us test system trust stores in Python If you're an IT or software team that uses Python along with corporate system certificates, an internal CA, or an internal PyPI repository: please read on to help improve Python. sethmlarson.dev Sponsored Ad Crunchy Bridge - Fully Managed Postgres as a Service crunchybridge.com Events Announcing the DjangoCon US 2022 Schedule! The DjangoCon US 2022 talk, tutorial, and sprint schedule is now out. Both in-person and online tickets are available. djangocon.us Articles Django Hosting & Deployment Options An up-to-date listing of Django specific deployment options. learndjango.com Lightweight Javascript Framework Review (For Django Developers) If you were curious about lightweight javascript frameworks, then this is the comprehensive post for you which includes: Phoenix LiveView Laravel Livewire Hotwire (Turbo, Stimulus) StimulusReflex Catalyst HTMX Unpoly Alpine.js Django Reactor Django Unicorn django-sockpuppet Tetra accordbox.com Python Package … -
Recursive Optional Dependencies in Python
One of my (slowly evaporating) reasons why I like putting packaging metadata into an executable setup.py is the ability to have optional dependencies that are combinations of others. As of pip 21.2, this is possible without running code. -
10 Ways How Salesforce Integration Improves Business Performance and 3rd party apps
Salesforce Integration is a process of connecting two applications or systems running on common/different platforms. These integrations have different layers like Data, Business Logic, Presentation and Security, depending on the requirements -
Extract a New Open Source Package - Building SaaS with Python and Django #140
In this episode, I pulled out code from homeschool application and started a new open source project for a portion that I thought would be useful for others. The new package, which I have called django-denied, is a way of handling authorization in your Django apps. -
Extract a New Open Source Package - Building SaaS #140
In this episode, I pulled out code from homeschool application and started a new open source project for a portion that I thought would be useful for others. The new package, which I have called django-denied, is a way of handling authorization in your Django apps.