Docker – Environment Variables, Env File & A Little Django (Python)

Docker logo

Why Use Environment Variables? Whilst building my Django project I replaced several of the values within settings.py with an option for them to be read from environment variables, rather than storing them in plain text within settings.py. This change allows me to store the settings.py file within a source control repository (e.g. Git) and also … Continue reading Docker – Environment Variables, Env File & A Little Django (Python)

Grafana – Using An API Call To Add DataSources (Python)

I've written blog posts on how to install Grafana and data exporters using Ansible (https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/) and a blog post on adding users to Grafana using an API call (https://geektechstuff.com/2021/01/06/using-an-api-call-to-make-multiple-grafana-users-python/), but after re-reading my blog posts I decided to automate the process (previously a manual step in the Ansible post) of adding data sources. I have … Continue reading Grafana – Using An API Call To Add DataSources (Python)

Beyond The Basic Stuff With Python – Book Review (Python)

Beyond The Basic Stuff With Python Cover

Over recent years my skills with the Python language have grown. This has been down to self-learning, online courses and several excellent books. However, at times I get the feeling that my Python skills are lacking the finesse and finish that other programmers have. Is it because my skills are missing something? If you get … Continue reading Beyond The Basic Stuff With Python – Book Review (Python)