Podcast Feeds in Django

I've been talking to Terry Johal about getting our podcast up and running again. Naturally my action plan was to rebuild the website. It was original built in CakePHP but has a few little bugs I've never got around to fixing so I thought I'd just rebuild it in Django.…

Testing File uploads in Flask

I was recently writing Flask integration tests for a form that had a file upload parameter. As it turns out, is isn't as straight forward as I had thought it would be. A basic file upload test might look like this: def test_logo(self): data = dict(logo=(io.BytesIO(…

Church Street Funding

Once again I teamed up with Voist and and the City of Westminster to develop a website for their Arts and Culture Funding Program. The site allows users to register, manage incomplete applications, upload required documents and submit proposals. Admin uses are then able to review submissions, comment on them,…

Flask-WTF tricks

I use Flask-WTF's What the Form module for most of my Flask projects as it takes care of things like csrf tokens and so on which is a nice piece of mind. I have recently come across a couple of really powerful features that have been hiding from me in…

I heart Laravel

Recently all the code I've been writing has been in Python which is definitely my preference at the moment. But I got some freelance work which required me to build a site using PHP so I went shopping for a framework and ended up with Laravel. I really couldn't have…

In defence of Apple

I feel compelled to add to the growing number of voices out there defending Apple right now. Especially when rubbish like this is being printed which clearly shows no understanding of privacy or Cryptography for that matter. Firstly, let's not forget that civil liberties are, by definition, protections against government…

Flask Application Factories

I was running some tests on a Flask application recently and ran into some weird errors. I was using Flask-WTF to create a form with a select box that was populated from the database. I was using Flask-Script to run my tests but because I had included app in my…

AFL Tipster

I'm a massive fan of Australian Rules Football and every year I end up in a tipping competition of one sort or another. And every year I get really frustrated at the poor design of sites that are more concerned with advertising revenue from gambling companies than a half decent…

Error Logging

Putting an app live can be nerve racking. Who knows what will go wrong once it's released into the wild. So if something breaks you want to know about it with as much detail as possible. In debug mode, Flask provides some really helpful debugging information with a full stack…