mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
77974a684a
`action="."` strips query parameters from the URL which is not usually what you want. Copy-paste coding of these examples could lead to difficult to track down bugs or even data loss if the query parameter was meant to alter the scope of a form's POST request.
16 lines
337 B
HTML
16 lines
337 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Submit data{% endblock %}
|
|
{% block content %}
|
|
<h1>{{ message }}</h1>
|
|
<form method="post" action="">
|
|
{% if form.errors %}
|
|
<p class='warning'>Please correct the errors below:</p>
|
|
{% endif %}
|
|
<ul class='form'>
|
|
{{ form }}
|
|
<li><input type='submit' value='Submit'></li>
|
|
</ul>
|
|
</form>
|
|
|
|
{% endblock %}
|