Articles by Tag

#python

November 9, 2023

Template Tests for Django TemplateView Requiring Staff Permissions

A mixin to be used with testing Django TemplateView class-based views that require staff privileges.

November 9, 2023

How to Test a Django TemplateView Requiring Staff Permissions

A discussion of how to test whether a Django TemplateView required staff permissions is properly structured.

October 27, 2023

Template Tests for Django TemplateView

A mixin for testing Django TemplateView class-based views to reduce having to write redundant test cases.

October 10, 2023

How to Test a Django TemplateView

An overview of tests you should consider for your Django TemplateView class view.

September 25, 2023

Test Logging in Django

An easy way to test Django logging to ensure your logs are being created as expected.

September 9, 2023

Flatpages In Django Part 2: Extending Flatpages

How to extend the Django flatpages app including a custom view to handle lookups by ID instead of URL.

September 8, 2023

Flatpages In Django Part 1: Basic Implementation

How to quickly set up Django flatpages for building generic, one-off pages like "about us," "privacy policy, "terms and conditions," and so forth.

September 3, 2023

Working With Slugs In Django

My approach to efficiently working with slugs, creating slugs at the proper stage, and using slugs for seo.

August 27, 2023

Next Article Suggestion in Django

Considerations in developing a content suggestion engine in Django.

August 20, 2023

Update Tags in Django

Considerations in building a custom admin interface for updating tag names.

August 11, 2023

File Naming Convention Ideas

A handful of concepts I use to efficiently store and retrieve resources on our file servers.

July 22, 2023

Mistakes in Making Copies of Python Objects

The differences between deep and shallow copies in Python, mistakes common mistakes and how to correct for these errors.