I have Order and Shipment model. Shipment has a foreign key to Order. class Order(...): ... class Shipment()
I have a model: 开发者_如何转开发class Person (models.Model): name= models.CharField () birthday = models.DateField ()
I have a model with a bunch of different fields like firs开发者_StackOverflow中文版t_name, last_name, etc.I also have fields first_name_ud, last_name_ud, etc. that correspond to the last updated date
I have the following model: class User: name = models.CharField( max_length = 200 ) problem_user = models.BooleanField(default=False)
I\'m trying to construct a query to get the \"average, maximum and minimum number of items purchased per user\".
I understand that, with a singleton situation, you can perform such an operation as: spam == eggs and if spam and eggs are instances of the same class with all the same attribute values, it will re
I am building a web-based application. The frontend has been designed in Sproutcore. For the backend, we have our own python API which handles all transactions with multiple databases. What is the bes
I have a XML file that is managed by other programs, I am writing a web service such that users are able to query this file. In essence i am using a xml based database instead of using sql as the mode
I would like to perform something similar to this (ie get the sum of distinct event amounts in a payment table then group the payments by event details an开发者_如何学Cd total money paid for them. Als
I want users to receive \'points\' for completing various tasks in my application - ranging from tasks such as tagging objects to making friends. I havn\'t yet found a Django application that simplifi