django-forms
Error when deploying django app
I built an app using Django 1.3 and am now attempting to deploy to ubuntu 10.10 on linode using postgresql. I am using nginx on the front end and for static media and sending app requests to the app s[详细]
2023-04-06 00:23 分类:问答Django form.is_valid keeps throwing KeyError
I have this code in my view: def add_intern(request): if request.method == \'POST\': form = InternApplicationForm(request.POST)[详细]
2023-04-05 22:03 分类:问答Posting a form back with it's default values in the Django TestClient
I\'m writing some tests for some forms in Django. These forms change quite often so I\'m trying to avoid hard-coding the form parameters into my tests as because every time my form would change, I\'d[详细]
2023-04-05 21:46 分类:问答Saving a form model with using MultiWidget and a MultiValueField
I\'m trying to understand how to create forms by subclassing MultiWidgets and MultiValueFields. I have a simple Address model and associated forms:[详细]
2023-04-05 17:50 分类:问答Model form save. Get the saved object
If I have a model form and save it like: f = FormModel(request.POST) if f.is_v开发者_StackOverflowalid():[详细]
2023-04-05 13:41 分类:问答How to fill model field value from a different ModelForm field with some calculation?
I want to have age fiel开发者_开发百科d in my ModelForm and use it to fill birth_year in the model.[详细]
2023-04-05 12:50 分类:问答Django : How to ensure a unique value for a field or group of fields in a record / form
I\'m using a ModelForm and i\'m happy with the default validation and errors. In my template i use a simple:[详细]
2023-04-05 11:49 分类:问答How do I make a model formset based on another model
I currently have two Django Models, on it like a setup model and another is the actual data for that model. Like this:[详细]
2023-04-05 04:01 分类:问答Django: password field optional in login form
In my regist开发者_运维技巧ration, a user can create an account with no password if they wish. I would like the password field in a login form to be optional.[详细]
2023-04-05 02:45 分类:问答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 分类:问答