Articles

91 published

Creating class based comment-functionality with Django

· 15 min read

The idea of this article is to show you how you can create a commenting possibility to a web page. The scope is a working local version with email-notifications.

Django contact form

· 14 min read

A contact form can be good for some customers, as some people like it better than sending email. It essentially does the same thing - it provides the first point of contact.

The scope of this article is a locally working installation and some quick pointers for a production implementation.

Python basics: Lists (Arrays)

· 2 min read

Lists are handy - they make it easy to store and manipulate data in as many dimensions as you need. In Python arrays are a powerful tool with a myriad of uses.

Python basics: Hello World!

· 1 min read

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)

· 3 min read

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

· 2 min read

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

· 1 min read

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

· 2 min read

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

· 3 min read

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

· 15 min read

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.