Support for Pre-Django 4.2 Storage Configuration Removed In Django 5.1
Support for the file/media and static file storage configurations has been removed forcing adoption of the new STORAGES dictionary in settings.py.
Support for the file/media and static file storage configurations has been removed forcing adoption of the new STORAGES dictionary in settings.py.
Use JavaScript to dynamically add forms to a Django Formset on the client side by copying an existing form, updating the necessary values and attributes, and appending the copied form to the formset. Additionally, this article will explore basic error handling for a couple of pitfalls we may encounter as well as how we can extend the functionality with a callback function allowing us to reuse the abstraction throughout our project.
A centralized approach to URL management in Django for frequently referenced URL patterns.
This article explores how to test your Django application using a domain rather than "localhost." Additionally, we'll look at a DNS cacheing issue you're likely to encounter and what to do about it.
Securely store your Google service account credentials with environment variables and use python to authenticate with Google services.
How to use the Django Sites framework in combination with custom middleware for supporting multiple domains pointing to discrete locations with a single Django application.
Additional steps to consider when configuring time zones in your Django project for optimal user experience.
A discussion on how to set up your Django project to handle timezones.
What types of content structure to consider, how to break it apart and considerations on indexing content.
How to add images to you blog pages using a WYSIWYG editor widget in a blog built with Django.
Wasting time chasing complex solutions for simple mistakes in Docker, Docker Compose, & Kubernetes.
A mixin to be used with testing Django TemplateView class-based views that require staff privileges and certain permissions.
A collection of tests useful in determining whether a TemplateView is structured as expected and whether the view demands the expected permissions.
A mixin to be used with testing Django TemplateView class-based views to reduce writing redundant test cases.
An overview of tests you should consider for your Django TemplateView class view.
An easy way to test Django logging to ensure your logs are being created as expected.
How to extend the Django flatpages app including a custom view to handle lookups by ID instead of URL.
How to quickly set up Django flatpages for building generic, one-off pages like "about us," "privacy policy, "terms and conditions," and so forth.
My approach to efficiently working with slugs, creating slugs at the proper stage, and using slugs for seo.
Considerations in developing a content suggestion engine in Django.
Considerations in building an interface for updating tag names.