- ARCHIVE / TAG ARCHIVE
- 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 […]
- UML to django
Neat little project that will speed up your data modeling using django: think up an application model, formalize it by drawing a UML diagram using the freely available ArgoUML, and have it tranlsated into django models automatically. Just use uml-to-django and et-voila’: the application is ready in django!
- 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 […]
- MySQL-Python and Apple OSX 10.5 (Leopard)
UPDATE 30/12/09 : Snow Leopard and most recent versions of MySQL-python have broken the recipe below: you’d better check this blog post for an updated version (it worked for me). In a nutshell, the new method involves using the Macports installation if you’re on Leopard, or specifying your 64-bit architecture during the compile process if […]