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.
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.
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.
Easing the transition to venv...
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.
Do you buy things on Amazon? Want to support the Django Software Foundation? There's an way to do so that not everyone knows about, using Amazon Smile.
If you're like me, your
git branches can get out of control over time. Here's some bash sorcery which will give a list of all branches that have been merged to origin/master.
If I had been king of the world - or BDFL at least - I would have made hyphens available in variable and package names in Python 3. It would have been a big change, but would have gotten rid of a very confusing ambiguity: when to use hyphens, and when to use underscores. A developer on our team asked me this today, and I promised them a blog post with where and when I use each. Some of this is personal preference, but it has felt logical to me.
Skyrim is one of the most popular games ever released, with an extremely loyal following. It has evolved into a platform over the years, with a huge ecosystems of plugins written by the loyal fan base which can add an amazing variety of content and updates that modernize the look and feel.