today a weird problem occurred to me: I have a model class in Django and added a custom property to it that shall not be saved into the database and therefore is not representative in the model\'s str
I have a database that was already being used by other applications before i began writing a web interface with django for it. The table names follow simple naming standards, so the django model Custo
I have these 2 models: genre = ( (\'D\', \'Dramatic\'), (\'T\', \'Thriller\'), (\'L\', \'Love\'), ) class Book(models.Model):
I\'m trying to find a way to filter down rows of objects within Django Admin, using a queryset. e.g. Person.objects.filter(Q(n开发者_JAVA百科ame=\'John\')|Q(surname=\'Doe\'))
I\'ve a large number of models (120+) and I would like to let users of my application export all of the data from them in XML format.
I am creating a chat like facebook chat... so in views.py of my Chat Application, I need to retrieve only the last messages every 3-4 seconds with aja开发者_StackOverflow中文版x poll ( the latency is
i dont know where is my error, but Django 1.2.1 is give this error: \'NoneType\' object has no attribute \'day\' when i try to save form from the Administrator Area
Is it possible to inherit permissions from an abstract model in Django? I can not really find anything about that. For me this doesn\'t work!
let\'s assume that I have very basic model class Message(models.Model): msg = models.CharField(max_length=30)
So I have a function which creates a dynamic model. I accomplish this in a way very similar to A开发者_运维知识库uditTrail (see django wiki).