On Sun, Sep 26, 2010 at 10:34 PM, Karen Tracey <kmtracey@gmail.com> wrote:
On Sun, Sep 26, 2010 at 4:15 PM, Marc Aymerich <glicerinu@gmail.com> wrote:What does the template that contains the form look like?It seems that the condition request.method == 'POST' is never true :( whyy??
Hi Karen, Here the template:
{% extends "base.html" %}
{% block title %}Domain Section{% endblock %}
{% block content %}
<h2>{{ title }}</h2>
<p>
<form action="." method="POST">{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<p><input type="submit" value="Submit"></p>
</form>
</p>
{% endblock %}
I use it succesfully with others forms.
Karen
--
http://tracey.org/kmt/
--
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.
--
Marc
--
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.
No comments:
Post a Comment