Loading Resources from Python Packages
Start with importlib_resources Start with the package importlib_resources. Properly export modules In order for a resource to be accessible, the module (or most likely the submodule) containing it needs to…
Start with importlib_resources Start with the package importlib_resources. Properly export modules In order for a resource to be accessible, the module (or most likely the submodule) containing it needs to…
Foundations For the most part, the doc How to Publish an Open-Source Python Package to PyPI – Real Python is what I followed. However, had that been it, I wouldn't…
A few years back I ran into a problem when working with Django on Windows while my colleagues were on Mac OS where a datetime routine (forgot which one) behaved…
Start with Docker's doc The link https://docs.docker.com/compose/django/ for the most part is valid in setting up a development environment for working with Django in Docker. Update to use Pipfile The…
Permission String The documentation for Django authentication (e.g. https://docs.djangoproject.com/en/2.2/topics/auth/default/#permissions-and-authorization) talks about allowing code to restrict access to models through a vague notion of a "permission." Read further and you kinda…
ARGH! I've been bounced between languages. It's driving me NUTS. This is a comparison of how to do something in each to help me map between them. There is definitely…