Archive for the ‘Python’ Category

If you want to make your Python code more readable and valid with PEP8, you can set up an informational, vertical line in Eclipse at some character (eg. 79). To do this go to Window->Preferences->General->Editors->Text Editors and enable...

There are several useful bits fo code we use in various Django projects. One of the most commonly used is a piece of code which modifies BoundField and Widget classes (from django.forms) in a way to add class='required' attribute to rendered HTML widget...