There are many different methods of generating a PDF in Python (and therefore, Django), that I have been exploring over the past few days for a project. After looking through these, this one seems straightforward.
Here's a quick trick using the Python library pygments to enable pretty colors in your terminal when viewing source code. It detects which syntax highlighter to use by the file's extension.
Bootstrap 4 provides some wonderful classes to use with various types of embedded content. In this post, I'll show how to use Wagtail's embed package to choose which Bootstrap CSS class to use in Django templates.
Python isn't named after a snake, it is named after Monty Python. Being half British, my father ensured I grew up ensconced in Monty Python. My Godfather, a force in me becoming a programmer, was also a huge Monty Python fan. He authored books on early computer science.
The Second Life community of LSL programmers had a pretty good sense of humor. The wiki page was defaced, and after a few years, I decided it was time to recover some of the funnier pages that were posted, which all had nuggets of wisdom. Without further ado...
Wagtail 2.0 has been released today, March 1st, 2018.
StreamFields are one of the great features of Wagtail, allowing developers to keep content structured and completely separate from the display layer of code. But how do you keep your data if you want to rename a block within a StreamField?
Django offers support for SQL Server through the third-party database engine, django-pyodbc-azure. Here's an end-to-end set of instructions for the best practices for installing it in 2018.
CodeRedCMS is a fantastic starting point to create a website for those are familiar with WordPress, but prefer the straightforward interface of Wagtail. Here's some CSS to help you get started.
I gave a lightning talk at DjangoCon US 2018, asking people how their lives could be different if they changed "just one thing." I share some of my recovery story as told by my GitHub activity chart!