Django, Python

Django: File uploads in forms

There are so many usecases where you’ll want to be able to upload a whole bunch of files to a website at once and yet, there isn’t really a well documented way to do it. The Django documentation itself is a bit half baked and not really all that helpful. So, in this article, I’m […]

Read more
Django, Python

Building an app in Django: the login

I’ve spoken in depth about getting Django ready to use in this article, so I’m not going to go through the general setup commands in too much detail. Suffice to say, once you’ve got your server up and running, you’ll want to configure the firewall and start your Django app. Now, to create your login […]

Read more
Django, Python

Pulling data from MySQL into Google Charts using Django

Pulling data from MySQL into Django is pretty straightforward. This article will show you some code samples of exactly that. In the below, you’ll see I have a load of DB queries. Each query is handled in a specific way and then a value is returned. Those values are populated into the Python dictionary at […]

Read more
Django, Python

An in depth look at Django

In Django, we have a few concepts. We have projects, apps, views, models, templates and a few more bits and bobs. In this article, I want to go through  Django Project App Views.py Models.py Templates admin.py Project Config Settings.py Urls.py So how do all of these things work and how do they link together? When […]

Read more
Django, Python

Making a random password generator website with django

While learning Django, it’s important to have some real world problems to tackle. Strong passwords are of course really important and so generators have become popular. So, the first thing we do is edit our urls.py file. Here, we list the URL’s the user will access and the view they point to in our views.py. […]

Read more
Django, Python

Getting django setup and ready to use

I am not the biggest fan of sys admin kind of tasks – I really just want an environment that works so that I can get to work. So when it came to installing a fresh version of Django, I started looking around for easier ways to do it. Enter Linode. Linode are a VPS […]

Read more