Note: This section of the site is under heavy construction, tread carefully.

Bookmarks tagged with “django”

175 bookmarks by garrettc



Improve Your Python Decorators

"I've previously written about "yield" and generators. In that article, I mention it's a topic that novices find confusing. The purpose and creation of decorators is another such topic (using them, however, is rather easy). In this post, you'll learn what decorators are, how they're created, and why they're so useful."

Bookmarked on #


Django filter - filter(A).filter(B) vs filter(A, B)

"Sometimes, when chaining filters together – SomeModels.objects.filter(a=A).filter(b=B) – we get duplicate objects in our queryset. In this article, we’ll explore & explain why."

Bookmarked on #



Django Static Files and Templates

Nice deep dive into how static files work in Django.

Bookmarked on #





Permissions in Django

This article looks at how to leverage Django's default permission system to assign permissions to users and groups.

Bookmarked on #


django-improved-user

"A custom Django user that authenticates via email. Follows identity and authentication best practices."

Bookmarked on #


RentFreeMedia

"Rent Free Media is a publishing distribution of Wagtail + Django aimed specifically at content creators who might otherwise use platforms such as Patreon, Substack, and Apple Podcasts. With it you can publish any sort of content to subscription users, as those services allow you to do."

Bookmarked on #



Responsive table with Django and htmx

Building tables with search, filtering, and pagination.

Bookmarked on #


django-query-capture

"Django Query Capture can check the query situation at a glance, notice slow queries, and notice where N+1 occurs."

Bookmarked on #


Unit testing Django and Wagtail

A repository for the discussion and publication of the CFPB development team standards.

Bookmarked on #




Honeybadger

"Exception, uptime, and cron monitoring, all in one place — and easily installed in your web app."

Bookmarked on #


Pocket - Django, HTMX and Alpine.js: Modern websites, JavaScript optional

"In this instalment we'll turn to the low- and no-JavaScript world. We'll cover some of the common approaches to "sprinkling in" light amounts of JavaScript into your Django projects in 2021."

Bookmarked on #


Scaling Django with Postgres Read Replicas

"Replication is a feature of PostgreSQL that you typically use to achieve high availability by running copies of a database that are ready to take over if your primary database fails. However, you can also use replication to make your Django applications faster. In this post, I’ll explain how to configure Django to query read-only Postgres replicas, allowing you to scale your database read performance linearly with the number of replicas."

Bookmarked on #


Docker, Django, Traefik, and IntercoolerJS is My Go-To Stack for Building a SaaS in 2021

I provide a deeper-dive on the tech stack I like to use in 2021. It is simple, easy to work with, and allows you to grow out of it when the time comes. Updated for 2021!”

Bookmarked on #



Adding Placeholder Text to Wagtail Forms - CodeRed

"Wagtail forms let the editor customize field types and titles, but not placeholder text. While you could write a custom template and hard-code the placeholder text, this quickly becomes a burden whenever the forms need changed. Here’s how to extend the Wagtail form field to enable editors to customize placeholder text."

Bookmarked on #


Django styleguide

Useful tips for starting a Django project.

Bookmarked on #



Build a Social Network With Django – Part 1

"In this four-part tutorial series, you’ll build a social network with Django that you can showcase in your portfolio. This project will strengthen your understanding of relationships between Django models and show you how to use forms so that users can interact with your app and with each other."

Bookmarked on #


How to Add a Favicon to Your Django Site

Lots of useful tips on ensuring you successfully serve a favicon on Django.

Bookmarked on #


Honey badger: Django Error and Exception Tracking

“Track and debug exceptions in record time. Uptime and cron monitoring included.“

Bookmarked on #





django-forms-dynamic

Resolve form field arguments dynamically when a form is instantiated, not when it's declared.

Bookmarked on #



django-widget-tweaks:

Tweak the form field rendering in templates.

Bookmarked on #




django-friendship: Django app to manage following and bi-directional friendships

This application enables you to create and manage follows, blocks and bi-directional friendships between users.

Bookmarked on #


Django, HTMX and Alpine.js: Modern websites, JavaScript optional

"Building a modern front end in Django without reaching for a full-blown JavaScript framework. Choosing the right tools for the job, and bringing them into your project."

Bookmarked on #


Basic and Full-text Search with Django and Postgres

This tutorial looks at how to add basic and full-text search to a Django app with Postgres.

Bookmarked on #


How to load a Service Worker in Django

Loading a Service Worker in Django might be tricky. Let's see how to make it work in this brief post!

Bookmarked on #


Django, HTMX and Alpine.js: Modern websites, JavaScript optional

"In this installment we'll turn to the low- and no-JavaScript world. We'll cover some of the common approaches to "sprinkling in" light amounts of JavaScript into your Django projects in 2021."

Bookmarked on #


Django Hurricane

A Kubernetes Native Stack Specifically Created For Django

Bookmarked on #


Securely Deploy a Django App With Gunicorn, Nginx, & HTTPS

"Taking a Django app from development to production is a demanding but rewarding process. This tutorial will take you through that process step by step, providing an in-depth guide that starts at square one with a no-frills Django application and adds in Gunicorn, Nginx, domain registration, and security-focused HTTP headers."

Bookmarked on #




Build a Content Aggregator in Python – Real Python

"In this project-based tutorial, you’ll build a content aggregator from scratch using Python and the popular framework Django."

Bookmarked on #


secure.py — secure.py 0.3.0 documentation

secure.py 🔒 is a lightweight package that adds optional security headers for Python web frameworks.

Bookmarked on #




Wagxperience — wagtail-personalisation documentation

"Wagxperience is a fully-featured personalisation module for Wagtail. It enables editors to create customised pages - or parts of pages - based on segments whose rules are configured directly in the admin interface."

Bookmarked on #