Archive for February, 2008

Testing out bisecting

Monday, February 11th, 2008

About the time to take some action:

chi linux # git-bisect good
Bisecting: 4814 revisions left to test after this
[d2e626f45cc450c00f5f98a89b8b4c4ac3c9bf5f] x86: add PAGE_KERNEL_EXEC_NOCACHE

Also.. back in Tartu. A new semester, weather feels crappy and this time I forgot my toothpaste.. ;)

Debugging Django {% url %} tag

Wednesday, February 6th, 2008

When you sometimes notice that {% url %} tag does not work for your named urls, then debugging it is easy. Start the python shell:

import app.views
from django.core.urlresolvers import reverse
reverse('named-view-to-be-tested')

If the view doesn’t work, it will either return NoReverseMatch: Not enough positional arguments passed in exception or url.

Thanks to jodal from #django for the tip.