Wednesday, March 7, 2012

output form html

I am having trouble changing the way the HTML in my form fields is
presented. I've been reading the docs (https://docs.djangoproject.com/
en/dev/ref/forms/api/#outputting-forms-as-html
). I've done this in
previous versions. But, it doesn't seem to work now.

No matter if I use form.as_p or form.as_table, I always get <li>.

I am running:
django-admin.py --version
1.4c1

This is my form:

{% block left %}
<form action="/search/" method="post">{% csrf_token %}
<input type="submit" value="Search" />
{{ searchForm.as_p }}
</form>
<br/>
{% endblock %}

TIA

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate