Articles

Python basics: Hello World!

2022-06-08

Hello world is a classic example of figuring out a way to make sure that you can produce a result with the tool you're using.

Getting SSL-certified (Certbot & Apache2)

2022-06-07

SSL-certification is essential if you're going to have a site that people will send and receive data from. It's easily evident from the little lock icon on the address bar of your browser if you have it or don't.

End result - you can see the coveted lock closed

Dumping a PostgreSQL database and automating the process

2022-06-07

There are many reasons why you'd need to have your data in a dump, and one of those is to back it up.

How to change user's password to Django project from cli

2022-06-07

It's quite simple, just use the command:

manage.py changepassword *username*

How to run multiple Django apps in production at the same Apache server

2022-06-07

I have a practical problem - I'm building a web site, but I have one app already running in production for the site. So I need to take care that I don't lose the data in my app and make sure that 2 apps work together.

How to change a production database from SQLite to PostgreSQL

2022-06-06

Django ships with SQLite, but PostgreSQL is a more capable DBMS. I wanted to try out the migration to a different system to learn about the process.

How to create a shopping list app in Django

2022-06-02

This is a step by step guide to creating a Shopping list app with users, registration and admin. The writing of this article and the coding took me about 5 hours with a production install included. You should be able to replicate the results in about half of that time.

How to split a string in Django template + Model

2022-06-02

Why would you need this? In my example, I have a simple shopping list and since Sqlite doesn't support arrays, this is an easy was to iterate the items to a neat list.