Posts in the python 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 Dec. 19, 2017, 2:50 p.m.

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.

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 Dec. 17, 2010, 2:09 p.m.

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...

Read more...
by flipperpa on March 1, 2018, 4:46 p.m.

Wagtail 2.0 has been released today, March 1st, 2018.

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. 8, 2018, 3:19 p.m.

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!

Read more...