Using multiple settings.py in your Django project

Posted on Mon 07 October 2019 in Python • Tagged with Python, Django • 4 min read

After going through "Django for professionals" and building the project in there, I started to build a Django project template based on what I learned from the book. The book goes through a development version of the project, and a production version, and it also makes use of Docker to …


Continue reading

New iPadOS and new, improved Pybites exercise workflow

Posted on Wed 25 September 2019 in Python • Tagged with Python, PyBites, Pythonista • 3 min read

The other day I wrote an article on how I have been working with Pybite exercises on my iPad. Since the code editor on the website didn't work well on an iPad (in my case iPad Pro 11") the workflow I did previously worked fine but contained a number of …


Continue reading

How I work with PyBites exercises on my iPad

Posted on Sat 21 September 2019 in Python • Tagged with Python, PyBites, Pythonista • 4 min read

Update 2019-09-25: With the new iPadOS 13.1 it works very well to do challenges directly on PyBites code challenges website with an external keyboard!! If you're using iPadOS 13.1+ take a look at my new workflow instead.

Update 2019-09-22: The workflow in this article assumes that you have …


Continue reading

Pieces of Py #5 Slice me up

Posted on Tue 17 September 2019 in Python • Tagged with Python, Pieces of Py, Slicing • 3 min read

In my learnings of Python I came to know that there is something called slicing. Given a sequence that you want to get certain sub-elements from, you can more easily get the results you want with slicing, instead of e.g. making a couple of for-loops.

Lets start with taking …


Continue reading

Pieces of Py #4 Using itertools.groupby

Posted on Sun 01 September 2019 in Python • Tagged with Python, Pieces of Py, Itertools • 3 min read

During some of the exercises I did on my first round of #100DaysOfCode there was a need to group an iterable by a certain field in the data structure. I found out, that was a function called groupby in the built-in itertools library that can be used for it.

In …


Continue reading