Categories
Django

Fix: ValueError: unknown locale: UTF-8

I was setting up the python.org website code, built on Django, on my local machine I encountered the error ValueError: unknown locale: UTF-8 while running the ./manage.py migrate command. See screenshot below:

Screenshot 2020-05-06 at 01.06.57

To fix this, I had to set the following environment variables:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

There, back to code.

Categories
git

Git pull multiple repos

I read a lot of open source projects, this has helped learn how to write code better. One of the interesting projects I follow is sentry (https://github.com/getsentry/sentry), sentry is cross-platform application monitoring, with a focus on error reporting.

The one challenge I have had is keeping up with the repositories, I needed a way to keep the repositories on my laptop up-to-date. Here is a one liner bash script I use to git pull the multiple repositories.

for i in */.git; do ( echo $i; cd $i/..; git pull; ); done