Mar 24 2012

Django 1.4 released!

Category: Uncategorizedtuxie @ 15:42

Read the announcement or the release notes.

The biggest new feature in Django 1.4 is support for time zones when handling date/times. When enabled, this Django will store date/times in UTC, use timezone-aware objects internally, and translate them to users’ local timezones for display.

Python compatibility

Django 1.4 has dropped support for Python 2.4. Python 2.5 is now the minimum required Python version. Django is tested and supported on Python 2.5, 2.6 and 2.7.

This change should affect only a small number of Django users, as most operating-system vendors today are shipping Python 2.5 or newer as their default version. If you’re still using Python 2.4, however, you’ll need to stick to Django 1.3 until you can upgrade. Per our support policy, Django 1.3 will continue to receive security support until the release of Django 1.5.

Django does not support Python 3.x at this time. At some point before the release of Django 1.4, we plan to publish a document outlining our full timeline for deprecating Python 2.x and moving to Python 3.x.

Dec 15 2011

Django Site matching query does not exist.

Category: Uncategorizedtuxie @ 11:16

When you configure your brand new Django project you’ll see in your settings something like:


That ID refers to the Django “sites” framework. If you plan on using the admin interface make sure that ID exists in the database, otherwise you’ll get an error:

DoesNotExist at /admin/

Site matching query does not exist.

Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.3
Exception Type: DoesNotExist
Exception Value:

Site matching query does not exist.

If it doesn’t exist, create it:

>>> from django.contrib.sites.models import Site
>>> site = Site()
>>> site.domain = ''
>>> = 'My website'

That’s the ID you should use in your settings file:


Dec 03 2011

Anatomy of a SPA. RubyConf Uruguay.

Category: JavaScript,Ruby,Uncategorizedtuxie @ 00:09

My present from the RubyConf Organization This is the prize I got for giving a talk at the RubyConf Uruguay, I totally loved it. It has my github nick in it =)

My talk was “Anatomy of a Single-Page Application: Client-side Model-View-Controller“. (Watch it. Spanish audio, slides in english.) For me was a total success, got a lot of great feedback, people approached me after the talk to ask questions and didn’t hear much of contrary opinions to what I said. I do know that how I said it wasn’t much fun for everyone.

I trolled a little. Not much, just enough, and (almost) always with proper justification. I trolled against jQuery, CoffeeScript and PHP. The problem was that I didn’t know there was a CoffeeScript talk right before mine. Duda Dorenelles talk about CoffeeScript, and as I watched his talk I was feeling bad for what I had on my slides.

Forget about CoffeeScript, be a man!” I think it’s the most controversial line of my talk, but it’s not groundless, and I explained it. I also talked to Duda and he totally understood, he even agreed with me. He is a super cool guy, I hope we can share a beer again sometime.

The organization of the event was excellent, besides some delay in the talks which is totally normal, everything went very smoothly, at least it seemed so. The night before the event they took the speakers to dinner, I didn’t expect that, was a very nice surprise. And as I mentioned before, I got this beautiful present after the talk which was very cool.

I was very anxious and nervous after the talk so I didn’t look at it very well, didn’t realize it had my nick on it. Later, when I was more calm I saw it and really loved it. I’m looking forward to being part of next year’s RubyConf Uruguay.

Jun 11 2011

First post

Category: Uncategorizedtuxie @ 14:31

Past this point all you’ll find is an IndexError.