- ARCHIVE / TechLife
- Creating Questionnaires with Django
Simple and useful application from Aperte: Django Questionnaire. The Django Questionnaire app allows you to easily set up a working questionnaire, complete with email-invitations and CSV export functionality. This app allows you to spread your questions over multiple pages (categories), and currently supports 4 types of answers. The application is pretty simple and well designed. […]
- Django signals
This is a really cool feature of django that I’ve never explored, so I though I’d made a post about it so to remind myself of using it more often! It’s discussed extensively in the docs here and here. In a nutshell: Django includes a “signal dispatcher” which helps allow decoupled applications get notified when […]
- Django 1.1: LogOut links apparently broken
I lost quite a few hours on this, but the solution was simple. The other day I realized that all the Log-in / Log-out hyperlinks in the admin were messing things up in various ways. Either by inserting a mysterious ‘None’ string in the url, or by adding the necessary url terminations (/logout, /login) to […]
- Yolk : Python packages index
Yolk is a Python tool for obtaining information about packages installed by distutils, setuptools and easy_install and querying packages on PyPI (Python Package Index a.k.a. The Cheese Shop). Yolk can list all the packages installed by distutils or setuptools on your system by >=Python2.5 or packages installed by setuptools if you have <=Python2.4. You can […]
- Installing PyGraphviz [tested on OSx Leopard]
PyGraphviz is a Python interface to the Graphviz graph layout and visualization package. With PyGraphviz you can create, edit, read, write, and draw graphs using Python to access the Graphviz graph data structure and layout algorithms. [I was doing this in order to benefit from some of the django-command-extension functionalities] 1. Get graphviz here and […]
- Autocomplete in Django #2
[Update 14/09/11 : If you’re using Django 1.3 you can also skip point -4- below, as the ‘cut’ filter is included in Django by default now!] [Update 15/2/10 : I added a small example that shows how to make this work with Inlines too, see point 6 below…] [Update 18/10/09 : please note that the […]
- Using jquery’s autocomplete in django admin: how about inlines?
I still haven’t solved this problem entirely, and I’ll tell you why. Well the issue has been addressed by many, and among them probably the first and most influential solution is Jannis Leidel’s ‘An autocomplete form widget for ForeignKey model fields’. Leidel says: [..] my question is, if this could be done on a more […]
- Project: django SOCLONE
Just wanted to flag up SO-Clone, an interesting project on googleCode that wants to replicate the fundamental functionalities of Stack Overflow. If you’d like to run a site like Stack Overflow, for example on your company’s intranet for internal use by developers, keep an eye on this project, which aims to implement a Stack Overflow-like site […]
- Using Django-MPTT: lessons learned…
Here we are again with Django and MPTT 0.3 (I already have other posts about it). After working with it for a bit I realized that things were breaking mysteriously, and only recently understood why that happened, so I thought I’d share this pearl of wisdom. Essentially this has to do with the way tree-elements […]
- Weird ‘example.com’ urls appearing on my django site…
It all started when I added the get_absolute_url method on my model objects: # includes a mysterious example.com ????? @models.permalink def get_absolute_url(self): return (‘person_detail’, [str(self.id)]) When you do that, the admin site automatically picks it up and adds some nice ‘view on site’ buttons on all of your individual object pages…: The problem is, the […]