Re: output form html
If you mean, does the final page being rendered match the code that I
am trying to change? The answer would have to be "Yes". In other
words, anything else that I modify will be reflected on the rendered
page.
On Mar 8, 2:55 pm, Joel Goldstick <joel.goldst...@gmail.com> wrote:
> On Wed, Mar 7, 2012 at 4:23 PM, backdoc <backdoc...@gmail.com> wrote:
> > 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 athttp://groups.google.com/group/django-users?hl=en.
>
> Are you certain that you are using the right template?
>
> --
> Joel Goldstick
--
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