Web Development

Django Dynamic ModelForm Using Closure by Eric on February 1, 2020

At my job we are currently undergoing a total rewrite of their old web-based data entry system.  It's written in Django and works pretty-alright we are just going to make it better.  When it was first written the company was small and very few tests were being done.  This caused the initial design to lack foresight into the growth of the project.  Another problem with this current system is that it was an almost direct port of their old Microsoft Access version they had been running before.  The company is international and a web based system is much better and easier for the employees to use but wasn't designed with growth in mind. With a better understanding of how the systemis being used and what the users wanted it to do we have been in the beginning phases of development for about three weeks now.  Parts of the site are ready to go live within a week but the major parts are left. One obstacle that was brought up by one of the software engineers today was the idea of creating ...

Bootstrap 3 Change Notes by Eric on February 1, 2020

![](/img/blurred-code-300x156.png) After spending the last two days working with Bootstrap 3 I wanted to jot down a few of the things I found in case I forget them tomorrow or to help anyone else running into similar issues.Forms, Grid System, and Screen Resolutions We have converted our forms from form-horizontal to the default Bootstrap form.  We think it looks better with the new update. Old code:<div class="control-group span4"> <label class="control-label"> {{ form.email.label_tag }} </label> <div class="controls"> {{ form.email }} </div> </div> New code:<div class="form-group col-4"> {{ form.email.label_tag }} {{ form.email }} </div> Cleaned up a bit as we had that extra label tag on our old code which was unnecessary as Django adds the label tag correctly on render.  One of the biggest thing to notice is that the span4 tag changed to col-4.  Bootstrap is now responsive by design and mobile first which means that the col- tags are me...