Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
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 … -
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. -
Integration Of GitHub API with Python Django
Using Github integration, we can get the user verified email id, general information, git hub URL, id, disk usage, public, private repo's, gists and followers, following in a less span of time.These Following steps are needed for Github integration:1. creating git hub app2. Authenticating user and getting an access token.3. Get user information, work history using access token. -
Django Efficient Implementation of Amazon S3 and Cloudfront CDN or Faster Loading
Django by default to store the files in your local file system. To make your files load quickly and secure we need to go for any third party storage systems. AWS s3 is one of the storage service for the Internet. It is designed to make web-scale computing easier for developers. django has a package called django-storages which can be used to store the files in the amazon s3 and serve them from its cloudfront service. -
How to Write Custom Migrations in Django
This blog post will help you to get deeper into Django Migrations - how Migrations works and how to create or add our custom migrations. Migrations are mainly for keeping the data model of you database up-to-date.