Ancestors

Toot

Written by m_eiman on 2024-08-28 at 17:11

Dreamhost no longer supports Passenger, so I need to switch to gunicorn. My thing is ancient, so it's written in python2 and needs to be ported to python3. And it uses kid for templating, which hasn't been updated since 2007. So I'll have to move to something else that runs in python3.

… this is gonna take a while.

=> More informations about this toot | More toots from mikaeleiman@mastodon.sdf.org

Descendants

Written by m_eiman on 2024-08-28 at 17:49

Making pretty decent progress, actually! Ran 2to3 which had no complaints, figured out the basics of running gunicorn for testing, and next step is to switch to a more modern templating system.

A quick and dirty Internet search said that Jinja2 is probably an acceptable option, so I'll start with that.

[#]python

=> More informations about this toot | More toots from mikaeleiman@mastodon.sdf.org

Written by gram on 2024-08-28 at 18:38

@mikaeleiman

Jinja2 is amazing! Solid choice.

I'd also run ruff (with all possible rules enabled) and mypy on the code at least once, especially if the test coverage is low. It will spit out a lot of false-positives but might also find some bugs related to the upgrade.

=> More informations about this toot | More toots from orsinium@fosstodon.org

Written by David Zaslavsky on 2024-08-28 at 19:24

@mikaeleiman Yeah #Jinja2 is kind of the "default" template system for anything in #Python - not literally the default, but popular enough that it might as well be. It'd be a good choice for you.

=> More informations about this toot | More toots from diazona@techhub.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113040759436180376
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.838139 milliseconds
Gemini-to-HTML Time
0.858657 milliseconds

This content has been proxied by September (ba2dc).