I 开发者_运维问答am having this weird problem of displaying two fields in the same line. According to django docs, for that I just need to wrap the two fields in a tuple. For eg, lets say I have two f
Consider the following django model from django.db import models from django.contrib import auth class Topic(models.Model):
I have a very simple model form, but for some reason, 开发者_运维问答the code fails to syncdb and throws an error: AttributeError: \'module\' object has no attribute \'CharField\'
I have a Photo model that looks like this class Photo(models.Model): title = models.CharField(max_length=100, blank=True)
I have two Model\'s which are related with a ForeignKey field. Let\'s call these objects Event and EventRegistration.
I have the following class with some of the attributes: class ConsentForm(models.Model): title = models.TextField()
Is it possible, within a single Django admin model, to aggr开发者_JAVA技巧egate fields from related objects.
I have been trying to setup my project on Django1.3 to use multiple databases, in my case different sqlite3 files. I have been reading the Django documentation as well a lot of googling but in vain.
I have 2 django servers, with their own database, I want to exchange some specific objects between them over the http protocol.
Dear django gurus, please grab my nose and stick it in where my silly mistake glows. I was about to proceed some simple math operation based on existing field values and store it in a separate field