I am coverting a J2EE application over to django. The existing app uses Textile as a simple markup for user text input. After installing pytextile (which is under ownership change at the moment), I found a problem using it:
The “textile” filter works for strings and strings retrieved from my database, but when I try to [...]
Entries Tagged as 'django'
Using pytextile in Django - problem with unicode
October 4th, 2007 · No Comments · django, technology
Tags: django
The Importance of the initial argument in Django newforms library
September 19th, 2007 · No Comments · django
I like Django a lot. In fact I am in the middle of converting a large J2EE application to Django. Sometimes I run into a problem using it, and knowing Django, I know there is a good solution. To find the solution however, sometimes require very careful reading of the documentation.
Case in point. The solution [...]
Tags: django
psycopg2 broken for 64 bit ubuntu
June 30th, 2007 · No Comments · django
I want to test out amd64 bit ubuntu. Django keeps failing on syncdb. Turned out the python Postgresql library, psycopg2 is “severely broken” in the 64bit packaging. You will get a segment fault when trying to run the simplest thing like syncdb on an empty system if you are using postgresql. Oh well, for now, [...]
Tags:
Django dumpdata does not work with numeric fields
June 28th, 2007 · No Comments · django
I try to dump my database in Postgres to json so that I can load it into my test system. Executing manage.py dumpdata gives me an error:
Unable to serialize database: Decimal(”349.00″) is not JSON serializable
Some googling finds ticket number 3324, a problem with the serializer. This is patched in the development tree already. Since I [...]
Tags: django
Django + Ajax != dojo
May 22nd, 2007 · No Comments · Uncategorized, django
If you good for “django” and “ajax”, you will quickly come across the “Django adopts Dojo as Ajax framework” article at Ajaxian. The important thing to note is that is it not (yet) true. Django 0.96, the current release, does not contain dojo. The dojo toolkit if definitely one of the better ones out [...]
Tags:
Django Installation on Apache
May 12th, 2007 · No Comments · django
I moved my Django environment from development to production here. One positive note for Django — it is relatively easy to do the migration, and, I am running on different database and servers between the two environment. I am using the built-in development web server in development and sqlite as the database. In production I [...]
Tags:
Custom Validation in Django newforms library
April 30th, 2007 · No Comments · django
This is how you add your own additional validation logic to a form in the newforms library:
Create a clean_XXXX method in your forms class. This will be called by the forms validation logic. Subsitute XXXX with the field name. Inside this method you will have access to all forms data clean’ed so far, including the [...]
Tags: