views:

303

answers:

1

I have a pretty simple file upload form class in django:

class UploadFileForm(forms.Form):
    category = forms.ChoiceField(get_category_list())
    file = forms.FileField()

one problem is that when i do {{ form.as_p }}, It has no submit button. How do i add one?

+1  A: 
<input type="submit" value="Gogogo!" />
Ignacio Vazquez-Abrams
As humorous as this is, it's not a very complete answer. Put that below `{{ form.as_p }}` before you close it off with `</form>`.
Mark
@mark ok thanks, thats what i was looking for.
The.Anti.9