> Per Wagner Nielsen's Blog · /home/ utf-8
READY.

Per Wagner Nielsen.dk

├──────────────────────── latest posts ─────────────────────────────────────────────────────┤
────────────────────────────────────────────────────────────────────────────────────────────

Asyncio basic II

Tutorial on how to use Asyncio in a Jupyter Notebook This story will show the basic of using Asyncio in a Jupyter Notebook Prerequisites Using Python 3.12. Need to install a few packages via pip...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Mini agent with Langgraph

Tutorial on how to make a mini agent using langgraph Prerequisites I'm working on an Ubuntu 24 with a langgraph 0.2.60 for good measure. This is also not an introduction to LangChain or LangGraph...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Asyncio basic I

Tutorial on how to use Asyncio in Python This story will show the basic of using Asyncio in Python Prerequisites Using Python 3.10. Need to install a few packages via pip along the way, but that...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Django on the cheap

Story on how to setup Django as cheaply as possible. NB: Still work in progress. This story will show how to create a Django application and deploy it to a hosting provider as cheaply as I could...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Wiremock on Github with Github Actions

Story on how to use Wiremock to run CI on Github with Github Actions This story setup a basic Django project using Docker and Docker Compose and then use Wiremock to run tests against a stubbed...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Deploy Django to Heroku using Docker

Story on how to use Docker and Docker Compose and deploy a Django app to Heroku This story setup a basic Django project using Docker and Docker Compose and then deploy said application to Heroku....

read more →
────────────────────────────────────────────────────────────────────────────────────────────

K Nearest Neighbor

We will look into the basics of K Nearest Neighbor Prerequisites We will be using Jupyter lab, so make sure you have that installed What is KNN (K Nearest Neighbor) KNN is a classification...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Logistic Regression 1

How does logistic regression work in Python. This is the story. We are going to look into the theory and application of logistic regression. This story will follow the outline of the course from...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Django logging

Tutorial on how to use logging with Django. Prerequisites I'm working on an Ubuntu 20.04, Django 3.1.1 and django-extensions 3.0.9 for good measure. This will not be a complete from zero to hero...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Using Sqlite with django and zappa

Story on how to use Sqlite as a database when deploying Django with Zappa Prerequisites I'm working on an Ubuntu 20.04, Django 3.1.1 and zappa 0.5.2 and django-extensions 3.0.9 for good measure....

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Django Forms 2 Validation

Tutorial on how to use form validation in Django This story will show how to use form validation in Django. Prerequisites I'm working on an Ubuntu 20.04, Django 3.1.1 and django-extensions 3.0.9...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Django Forms 1

Tutorial on how to use forms in Django This story will show how to use forms in Django. Prerequisites I'm working on an Ubuntu 20.04, Django 3.1.1 and django-extensions 3.0.9 for good measure....

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Setup django with multitenancy (semi-isolated)

Setup Django with django-tenancy (semi-isolated) This story will show how to install setup Django to work with multiple clients, like a real SAAS. Prerequisites I'm working on an Ubuntu 20.04,...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Sanic Web Tutorial Part 2 - Templates

In Part 2 we will setup Sanic to render html templates. Install and setup Jinja2 extension We will enable our application to render Jinja2 templates. Jinja2 is a template engine developed by Armin...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Sanic Web Tutorial Part 1

Welcome to my Sanic Web Tutorial where you will learn to use the async web framework Sanic to create and deploy your own website. Assumptions I assume that you are familiar with using Python and...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Deploy Flask app to Heroku with Docker and Gitlab

Deploy Flask app to Heroku with Docker This story will show how to install deploy a simple Flask app to Heroku via Docker and Gitlab CI. Prerequisites I'm assuming that you are familiar with the...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Install Squid proxy on Raspberry Pi

How to install a Squid proxy on a Raspberry Pi This story will show how to install Squid3 on a Raspberry Pi (1) and set it up as a proxy server Squid as a proxy Install Squid First install squid $...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Docker, Docker Compose and Django with Celery

How to setup Django and Celery with Docker and docker-compose This story sets up Django and adds Celery support to a docker-compose setup. I have updated this on 22 May, 2022 to use the newest...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Docker, Docker Compose and Django

How to setup Django with Docker and docker-compose In this story I'll show how to setup a simple django application to use docker and docker-compose. Install a base django project First we need to...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Vagrant, Ansible and Posgtresql

How to setup Vagrant, Ansible and Postgresql In this story I’ll be setting up Vagrant with a Postgresql server provisioned by Ansible. The setup will be pretty bare bone, so don’t use it as a...

read more →
────────────────────────────────────────────────────────────────────────────────────────────

Django's select_related

How does Django's select_related works and when should you use it? What problem does it solve? Django's select_related() solves the problem when you want to access related fields on a queryset....

read more →
────────────────────────────────────────────────────────────────────────────────────────────

IP address and subnets (IPv4)

This blog post will show how IP addresses work, what subnetting is. Binary to decimal for two byte numbers First, it can be beneficial to memorize the following table, which is just a list of...

read more →