Keeping track of Django project dependencies

Introducing django-package-monitor

November 26, 2015

tl;dr We’ve released django-package-monitor, a django app to make it easier to see which packages are out of date.

UPDATE: I messed up the setup.py dependencies in the original package, and the latest package depends on a source install of semantic_version, so you will need to use the --process-dependency-links option when installing . . .

Read More

Unexpected UUIDField upset

That moment when you realise your Universally Unique Identifier... isn't.

October 07, 2015

@stevejalim – YJ Tech Lead

We like UUIDs at YJ. One use of them we're particularly fond of is sticking specific yet meaning-free labels on objects, so we don't have to worry about exposing 'walkable' integer PKs or human-readable usernames or any of that awkward stuff.

As such, we've used our own . . .

Read More

Async race conditions (Django, RQ)

Solving the case of the missing objects

Setember 30, 2015

tl;dr Beware of race conditions when using async queues and accessing data which may not have been committed on the main process.


Whenever we have to update an external system (pushing out data to out CRM system, notifications to HipChat, sending emails, that sort of thing) we send the data asynchronously by queueing up a . . .

Read More

Django, Whitenoise, and Heroku

Setember 16, 2015

tl;dr Heroku’s filesystem is ephemeral, so be careful when running the collectstatic command - it doesn’t necessarily do what you think it does..

Our current production asset delivery setup looks like this:

  1. Run grunt locally to generate static files
  2. Commit changes to repo
  3. Push to Heroku
  4. Run collectstatic to . . .

Read More

Generating MoM, YoY and CMGR from SQL

Does anyone round here know SQL any more?

August 25, 2015

We recently hired someone to help us with some data analysis and reporting requirements. We're not really big enough to claim that what we needed was a Data Scientist, but that is effectively what we were looking for. And as is our wont, we created a simple test for applicants, designed to show some ability to extract meaning from data . . .

Read More

Continuous delivery at YunoJuno

BitBucket to Codeship to Heroku

June 22, 2015

Disclaimer: I'm a Continuous Deployment sceptic. I've always been suspicious of people who automatically deploy code to their live environment, and still am. Seems risky to me. See this article for more details on the difference between continuous delivery and deployment.

I've blogged before about our deployment tools, . . .

Read More

Custom deployments with Codeship

Deploy to a specific Heroku environment based on committer with a custom script

June 18, 2015

(tl;dr this is a precursor of a longer post on continuous deployment at YunoJuno, and deals specifically with custom Codeship deployments.)

In addition to hosting our dev, uat (staging) and live environments on Heroku, we now have separate Heroku environments (apps) for each developer on the team. We used to allow developers to push . . .

Read More

Archive
   Subscribe by email and never miss a post.