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…
Azure Blob Storage ("Azure") and Google Cloud Storage ("GCS") are now supported as well as AWS S3 ("S3") by log4j-s3-search project. While working on adding the two options, I learned…
Create an empty repo Create an empty repo off of /home/username where username is your user name.The following will create an empty repo named "myrepo" in the subdirectory /home/username/myrepo.git cd…
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…