Creating requirements.txt files from settings files

28 March 2014

With Django it's a good idea to have a settings module for each environment, and having separate requirements.txt files per environment makes things easier to manage too.

Here's a bit of unixy goodness that will look at the settings files in project/settings and create equivalent requirements.txt files in reqs/.


mkdir -p reqs &&
ls  project/settings/ \
    | grep -E "^[a-z]+.py$" \
    | cut -d . -f 1 \
    | xargs -I {} touch reqs/{}.txt

Run this from your project root

Note: there are some good reasons for not parsing ls and using find with xargs is a much better option.

First steps with Vagrant, Ansible and AWS

8 March 2014

This article is a walk-through getting a simple site running on a Vagrant virtual machine, then using the same provisioning process (Ansible) to have it running on AWS.

The key idea is to have the same development environment as production. So there are fewer deployment surprises which ultimately encourages continuous delivery.

Read on...

Hybrid Web Applications with PJAX and HATEOAS

Friday, 28 February 2014

Demo of web app using animation and History API from James Da Costa on Vimeo.

Slides and code from my talk at Async (Brighton JavaScript meetup).

Where it began

4 December 2013

Like a lot of young people in the early 90's, I was bitten by the programming bug. In my case the Apple II was the machine which provided that sense of adventure.

20 years later, I'm working in web software development and still amazed by what's possible.

This blog is a place for me to share my ideas, adventures and learn a few things too...enjoy.

Hello, I'm James, a web developer from Brighton working with Python & JavaScript.

I'm on Twitter, GitHub, Lanyrd