For my assets web app, written in Flask (Python) I have separated the app and the database into separate instances. This allows me to update the app and its dependencies without impacting the database and its dependencies, or vice-versa. The database could be one of many as I'm using SQLAlchemy to handle the connectivity between … Continue reading Flask and SQLAlchemy: Connecting To MySQL (Python / Notes)
Category: Python
Continuous Deployment, Continuous Delivery – The CD of CI/CD (GitHub / Python / DevOps)
In this blog post I take my Flask (Python) web application and deployment to Microsoft Azure, and instead of doing it manually I do it via a CI/CD. I've previously discussed Continuous Integration (CI) in blog posts around CI, GitHub actions and recently Code Coverage. The CD of CI/CD can stand for Continuous Deployment or … Continue reading Continuous Deployment, Continuous Delivery – The CD of CI/CD (GitHub / Python / DevOps)
Code Coverage (Python / DevOps)
Testing is important, especially in Continuous Integration / Continuous Deployment (CI/CD) environments, as it gives some reassurance that a code commit has not broken anything. But what happens if you are unsure how much of your project is covered by tests? Code Coverage Code coverage monitors tests as they run and checks which parts of … Continue reading Code Coverage (Python / DevOps)
Generating / Reading QR Codes via Python (Python)
A blog post looking at using Python to create or read QR Codes.
An Asset WebApp (Flask / Python)
The Software Engineering & Agile module of my degree apprenticeship is coming to a close. With that in mind I think I can now share the coding I've done for the assignment especially as I needed to store it in a public repository (it's on my GitHub at https://github.com/geektechdude/qa-se-webapp ) as part of the submissions … Continue reading An Asset WebApp (Flask / Python)
Running Flask As A Linux Service (Linux / Python)
Continuing on with the Software Engineering & Agile module of my degree, I need to be able to show my Flask web application running. After picking a cloud platform (in this case Azure) I git cloned my repository to the Linux Ubuntu instance that will be running it and realised that I've not included a … Continue reading Running Flask As A Linux Service (Linux / Python)
Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)
In this blog post I will be discussing Continuous Integration (CI) with GitHub Actions. Readers of previous blog entries may remember that I’ve tackled Continuous Integration (CI) with GitLab previously (see: https://geektechstuff.com/2021/04/05/python-unit-test-and-some-ci-via-gitlab-python/ ) and that last autumn (2021) I got into more testing (see: https://geektechstuff.com/2021/10/06/personal-update-django-and-mvc-mtv/ ). Thankfully both have helped as the current module of my degree apprenticeship is … Continue reading Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)
AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)
Less of blog post and more of a reminder to myself. When using Flask and Unit Testing with Python, if either of the below errors occur (or something similar): AttributeError: 'FlaskClientTestCase' object has no attribute 'client' AttributeError: 'FlaskClientTestCase' object has no attribute 'app_context' Then it may be because the setUp function of the test class … Continue reading AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)
Jupyter Notebook via Docker on Raspberry Pi (Python, Raspberry Pi)
With my Data Analytics learnings continuing at a fair pace I need to be able to turn data into something nice (e.g., plot it onto charts). I could use Power BI or R , but as regular readers may know my preference for most tasks is Python. Python offers several libraries that are great for … Continue reading Jupyter Notebook via Docker on Raspberry Pi (Python, Raspberry Pi)
Docker – Environment Variables, Env File & A Little Django (Python)
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)
You must be logged in to post a comment.