Recent Posts

Disabling Migrations While Testing

If you have a large Django 1.7+ project with a lot of migrations running test even with --keepdb can be slow just because the new migration framework has to order the migrations even if there is nothing to do.

After a few attempts I have found something which works pretty well for me. In your testing setting you can include the following:

class DisableMigrations(object):

    def __contains__(self, item):
        return True

    def __getitem__(self ...
Read More

Default VPCs and T2 Instnaces

Amazon Web Services grows increasingly complex as they provide new an compelling features while supporting legacy users. To some extent this is unavoidable, but the upgrade path is not always clear and keeping documentation up to date is challenging. I did some digging into the new T2 instances and this is some of what I found.

New T2 Instances

My interest was peaked by the T2 instances. The t2.micro is less expensive while nearly ...

Read More

PyCon 2014 and Python on Rails

The organizers of PyCon 2014 did a great job making a large conference feel like a regional one. The diversity among the attendees was great, though there is always room for improvement. I will definitely be going back in 2015.

Here are some lessons learned and a recap of Python on Rails which proved that trains still are the best way to travel.

Stop using pickle. Did you know pickle is a stack based language ...

Read More

Django i18n

What does i18n mean?

i18n = i followed by 18 letters followed by n = internationalization

That is it, just a short hand. It isn't the name of standard governmental or otherwise.

When I watched the first videos about Django many years ago, they declared that Django had great internationalization support including a Welsh translation. It sounded great and I wanted to try to use it, but I was never involved in a project that really ...

Read More

Going Responsive

I was somewhat skeptical of responsive design. Grids add some additional HTML which is essentially for layout and I thought responsive design generally relied on Javascript, but after transforming my own website I found things are getting better.

Let's start with what my website used to look like.

Previous design of my website where most section were surrounded by a border.

Boxy and segmented, it was built for a specific width and not on a grid. It looked alright on mobile because I used the meta viewport ...

Read More