You are here:-Fixes
3 05, 2017

Update a model field – Django

By | May 3rd, 2017|Categories: Fixes|Tags: , , |0 Comments

I noticed a typo in a field name after running migrations, I followed these steps to update the field without loosing data. Update the filed name in the model with the desired name (taking note of the current name) Create an empty migration. If you have previous migrations, this one must be named in such

1 05, 2017

virtualenv for python3

By | May 1st, 2017|Categories: Fixes, Hacks|Tags: , , |0 Comments

Simple steps to setup virtualenv for Python3 To setup virtualenv for python3 for Django projects, create and cd into the desired folder for the Django project. Create a folder for virtualenv, eg mkdir venv $ cd venv // The created folder for virtualenv Then run these commands worked for me in this order: $ virtualenv

28 04, 2017

Fix IOError: [Errno 2] No such file or directory error for appdirs

By | April 28th, 2017|Categories: Fixes, Hacks|Tags: , , , , |0 Comments

Appdirs is a small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". Github repo - https://github.com/ActiveState/appdirs This error from my experience occurred when I updated my local branch from origin and ran pip install to get the latest installed packages. pip tried to upgrade appdir but it failed for some unknown reasons,