Archive for January 2008
My Second Django App
Yesterday, I completed my second django application. I still don’t want to say I know django, but this time around I learnt quite a bit. This app is for a friend of mine working in one of those big outsourcing firms. I guess I ll post the code for download, once he okays the application. He has already agreed to that. After all, I want to keep that opensource.
Some very interesting learnings from the code are the newforms library from django 0.96. I had about 15 fields in the model and had to generate select boxes with validations. If I did it with the django I knew so far, I’d never have completed. newforms just worked magic. The other was using the calendar from the admin interface, for DateField, in our code. I took the code from this snippet.
The code has some ugly hacks. You’ll guess it at the first look. I ll fix them over the weekend, if I find some time. Already, last week had been least productive here. The only thing that even worked was this django app. So, I won’t get back to this until some of the other more important ones are completed.
There is one more useless detail that needs to go into this – the license. I haven’t decided on one yet, but since I want it to be on my profile, I ll keep it something like BSD or GPL2.
Blogged with Flock