Is it posibble to use django-crispy-form FormHelper without modifying Form class -


for sake of consistency want use crispy login form. i'm using 'django.contrib.auth.views.login' , i'm coding template.

the problem {% crispy form %} doesn’t output submit button nor "next" hidden field.

is there way create formhelper outside of forms.py ( it's in contrib.auth need try extend authenticationform or it) use in template without modifying views.py(also in contrib.auth)

if require ninjitsu extending classes etc. go pure html if there simple way include 'external' formhelper on template level regret not asking

i'm not sure why need use {% crispy form %} , not crispy filter. i'm using crispy in login form, overriding template django.contrib.auth, way:

{% load crispy_forms_tags %}  {% block body %}  <form method="post" action="" class="form-signin">{% csrf_token %}     {{ form|crispy }}     <div>     <button type="submit" class="btn btn-primary">{% trans "log in" %}</button>     </div> </form>  {% endblock %} 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -