Posts related to tag "python":
How to Make a Quick Django Website For Mobile
I was really bored at the Christmas night, so I decided to create the mobile version of my Django based weblog real quick.
First I added a mobile detector middleware to the list of my middlewares on settings. I grabbed a nice middle ware from here.
Then I created new templates for the mobile ...read more
Published on: Dec. 25, 2010 --- Number of Comments: 0
Serializing Foreign Key in Django Model
Django comes with a powerful serialization mechanism to convert your models to XML, JSON, YAML, and even python objects. However, the default serializer won't serialize the entire fields of another model if a foreign key field is pointing to it.
Django 1.2 introduced natural keys to address this issue, but if you cannot change your foreign ...read more
Published on: Aug. 1, 2010 --- Number of Comments: 0