django-models
Django ModelForm vs. Form
Hi EveryoneI want to know if a ModelForm is better than a Form to write a form for a normal user that has complicated form validation and开发者_开发技巧 more fields than a Model. Which one is more pro[详细]
2023-04-04 21:26 分类:问答How can I parse an external XML file with django/python
I\'ve done some research on trying to parse an XML file from 开发者_如何学JAVAanother web server and came across something called minidom.[详细]
2023-04-04 20:53 分类:问答django: Switch the inherited model base class to different child
The base class model and inherited models are as follow: class Profile(models.Model): user = models.ForeignKey(User, unique=True)[详细]
2023-04-04 11:25 分类:问答Django query to get all ads whose keyword sets are contained by a search string
I am trying to implement an advertising system in Django.My model for ads is as follows: class Ad(models.Model):[详细]
2023-04-04 10:30 分类:问答Django Model related Field Clash
Consider the following model: class FPModel(models.Model): # The user who created author = models.ForeignKey(auth.models.User, null=False)[详细]
2023-04-04 10:25 分类:问答Django models.ForeignKey filter
I have a 2 models: class Foo(models.Model): name... type = models.CharField(choices=TYPE_CHOICES) class Fighter(models.Model):[详细]
2023-04-04 08:17 分类:问答Returning a custom model instance from a manager
I have a model that looks like this and stores data as key-value pairs. class Setting(models.Model): company = models.ForeignKey([详细]
2023-04-04 06:40 分类:问答Django Form based on multiple models
If I have two models in Django application like this: class Author(models.Model): name = models.CharField(max_length=100)[详细]
2023-04-04 01:01 分类:问答Store form fields as key-values / individual rows
I have a simple form in Django that looks like this: class SettingForm(forms.Form): theme = forms.CharField(rrequired=True,[详细]
2023-04-03 13:47 分类:问答Storing additional info about users in Django
For some reasons (particularly, to try making DB scheme upgrading easier), I need to store all the user\'s extended properties in another object (like in this question to separate Person and Address)[详细]
2023-04-03 12:14 分类:问答