Posts in the how-to category

by flipperpa on June 30, 2015, 4:50 p.m.

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.

Read more...
by flipperpa on Jan. 5, 2018, 2:54 a.m.

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.

Read more...
by flipperpa on March 12, 2018, 12:58 p.m.

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?

Read more...
by flipperpa on May 7, 2018, 5:34 p.m.

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.

Read more...
by flipperpa on Feb. 6, 2019, 6:15 p.m.

Easing the transition to venv...

Read more...
by flipperpa on Sept. 15, 2019, 6:30 p.m.

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.

Read more...
by flipperpa on Nov. 11, 2019, 3:02 p.m.

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.

Read more...
by flipperpa on Jan. 17, 2020, 4:30 p.m.

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.

Read more...
by flipperpa on April 6, 2020, 11:06 p.m.

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.

Read more...
by flipperpa on April 18, 2020, 12:42 p.m.

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.

Read more...