How to add line numbers and filename when printing in Python
We all do it. Yes we all use print for debugging.
Should we do it? Maybe.
Should we feel guilty about it? No!
We all do it. Yes we all use print for debugging.
Should we do it? Maybe.
Should we feel guilty about it? No!
For those you run pipenv install django-unicorn And you get a dependency resolution conflict relating to orjson like this: Then you are probably running a 32 bit version of python. orjson needs a 64 bit version. To fix this I… Read More »Resolving orjson dependency conflict when installing django-unicorn in Windows
So I wanted to add a sitemap to my site – and I went looking for a plugin to do it for me. But I don’t need a plugin! Why? Because Django has sitemap generation built into the framework! Brilliant!… Read More »Creating Sitemaps in Django
Look, we all do it. It’s our guilty little secret as programmers. Yes, we still use the print() statement for debugging out to the console. Well now your shame can be a little prettier! Introducing the rich library! Install with… Read More »Super charge your Print statements with rich!
Recently I found the need to access a page external to my app and get the links of all the images for subsequent downloading. I found some code readily enough but it was for Python 2.7 – here is the… Read More »How to get all the image links on an external page using Python
A few years ago, I had the opportunity to interview people for a Senior Software Engineer role. I was dead keen to do this as I take an interest in how to interview programmers. Amongst the questions I asked, there… Read More »The interview question that stumped 30% of Senior Software Engineers
I’ve been coding in Django for nearly 2 years now and only recently have I needed to code a session variable. It is probably because sessions are mainly to do with login and that was handled by the django-allauth plugin… Read More »Session Variables in Django