[Django]-How to create template tags in django and use Form?

1👍

First of all, will try include block to your template file:

{% for field in form %}
    <div class="fieldWrapper">
        {{ field.errors }}
        {{ field.label_tag }} {{ field }}
    </div>
{% endfor %}

Secondly, Is exist view post at the views.py for redirect(reverse('post', args=[request.POST.get('url')]), form=form)? Besides exist entry url(...) of the urlpatterns at the urls.py for post view? If both exists add it it to question’s code

Leave a comment