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
I have this code in my view: def add_intern(request): if request.method == \'POST\': form = InternApplicationForm(request.POST)
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
I\'m trying to understand how to create forms by subclassing MultiWidgets and MultiValueFields. I have a simple Address model and associated forms:
If I have a model form and save it like: f = FormModel(request.POST) if f.is_v开发者_StackOverflowalid():
I want to have age fiel开发者_开发百科d in my ModelForm and use it to fill birth_year in the model.
I\'m using a ModelForm and i\'m happy with the default validation and errors. In my template i use a simple:
I currently have two Django Models, on it like a setup model and another is the actual data for that model. Like this:
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.
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