A news worthy of The Tryolabs’ Herald: We have just proudly released to the public LibreQDA, a Qualitative Data Analysis tool that we have developed alongside with the Universitat Autónoma de Barcelona and the Universidad de la República Oriental del Uruguay. LibreQDA is what is commonly know in the psychology area as Computer Assisted Qualitative Data […]
Category: Django
Displaying timezone-aware dates with Tastypie
So you have made the decision to use timezone-aware dates and now you are building your cool REST API using Tastypie. Of course timezones are important to your application, so you want to expose them when Tastypie exposes dates in the API. You have a very simple resource that exposes a Django model that has […]
collectr: Static File Management for All Of Us
A little while ago I wrote a blog post talking about Git hooks. As an example in that post I wrote a post-commit hook that would minify and upload my static files to S3. This has spiralled a little bit out of control since then, and I finally drew the line at maintaining that script. […]
I Love Checkoutmanager and Dotfiles
An ode to my OS X development workstation setup [1] I am big on setting up my development environment, and enjoying the environment I work in. And I’m very thankful to the folks who make my life easier, including the authors of: Python: Python Core Developers dotfiles: Jon Bernard checkoutmanager: Reinout Van Rees I also […]
Python 3 Porting
The 3 in 2013 is for Python 3 I tend to like projects that everyone else hates, e.g.: Removing persistent Python objects associated with missing classes in ZODB. Making new releases for old software that is still useful but unmaintained. Running flake8 on 10s or 100s of source files and hand-fixing the results. Part of […]
New Year’s Python Meme 2012
This is my entry for Tarek Ziadé’s New Year’s Python Meme, a tradition I have come to enjoy. Both to reflect on the current year and look back on previous years. So here it is. I did this in 2009 & 2011. Let’s try it again. 1. What’s the coolest Python application, framework or library […]
Not All Opinions Are Equal
This blog post is a reaction to this blog post by David Hansson. If you have the time, I highly recommend reading it. If you don’t, I’ll summarise the most relevant bits as I go. Having Things Your Way David Hansson has recently written a blog post about Rails, and in particular about how Rails […]
PyCon Uruguay 2012
Last November 10th and 11st we enjoyed the first Python Conference in Uruguay. The event was developed by the Python community in Uruguay as a result of the great success of the PyDay that took place in August 2011. In the event participated several speakers from Uruguay, Argentina, Brasil and Denmark with talks ranging from Biopython, Machine Learning to […]
Generating image thumbnails with django-thumbnail-works.
Uploading images to our Django application can be as easy as adding an ImageField to our model. However, ImageField falls short in one key aspect, thumbnails. Usually when uploading images, we want to create smaller versions for them, for using in for example, galleries or previews. This however, has to be done manually using the appropriate imaging […]
Django Hello
Django doesn’t really need a hello world style introduction, its documentation speaks for itself. But this is what “Hello, world!” in Django looks like to me. I hate boilerplate and I love reducing software down to its core components; just enough to start the server. setup.py: from setuptools import setup setup( name=’hello’, ) requirements.txt: Django==1.4.1 […]
A Django Administration interface for non staff users
A while back I had a Django application in which I needed registered users able to view, create, update and delete objects in my system. These objects were instances of only a subset of all the Django models.Model subclasses I had defined in the models.py file of my application. You may find this problem very […]
The GPL vs. The MIT License: Which License To Use
A great many developers, myself included, believe that it is important to spend at least some time contributing to open-source software projects. These projects will hopefully be licensed (if you haven’t got a license on your open-source project, you’re doing it wrong), to ensure that your contributions are used in the way you (or the […]
Building a Minimalist Blog in Python (or, How I Learned to Stop Worrying and Love Web Development).
As of today, I have taken my final examination as an undergraduate student of Physics. With my graduate software engineering job beginning in September, I am one graduation ceremony away from being a Software Engineer instead of a Physics Student. Despite the fact that the world needs another programming/tech blog like a hole in the […]
Django – Adding CAPTCHA validation to your forms
Recently we implemented a “Forgot your password?” feature in one of our django sites and wanted to protect the mechanism so our users wouldn’t get spammy messages from our servers. As much as we may hate it, forms in our sites usually act as spambots magnets. We need some kind of protection and CAPTCHAs usually […]
Get user data using django-social-auth
Recently we had to add support for social networks login to an application we are developing and we chose django-social-auth to work with. It is a well documented and easy to use django application for authentication. But we wanted to do more than just authenticating the user, we wanted to get extra data like the […]