October 2010
2 posts
3 tags
Fix "can't find easy_install executable [Errno 2]"...
Today, when I tried creating a new virtual environment for a project, it failed with the following error.
I guessed that it should have something to do with replacement of setuptools with distribute recent versions of virtualenv(because it could not find easy_install executable) and since as we know that python packaging is outdated and brain dead on Linux distos(at least on Ubuntu in my case), I...
6 tags
Make Django forms.ChoiceField accept choices from...
Recently I faced a problem in one of our Django project where I had to display drop down select box and checkboxes on a webpage which on initial page load had a about 20 - 30 choices. These choices could change via Ajax depending on the actions performed by the user. Also the choices come from a pool of hundreds of thousands of possible values.
Default forms.ChoiceField provided by Django,...