Art at Home

For me, one of the paradoxes of the digital age has been that the more ubiquitous things are, the less I feel like I engage in them. If feels like there’s just so much and I have so little time and attention. One example of this are my photos. As I write this, I have… Continue reading Art at Home

Timestamps in Django

I’ve recently been playing around with the Django web framework (all non-techies should stop reading this at once). ┬áHere’s a little snippet of code that’s useful if you want to add a timestamp to a model you’re creating: from datetime import datetime class My_Model(models.Model): date_created = models.DateTimeField() date_modified = models.DateTimeField() def save(self): if self.date_created ==… Continue reading Timestamps in Django