Custom "authentication_form" Does Not Apply Bootstrap Css
I'm attempting to apply bootstrap to a django login form. I have scoured google for hours and pretty much everyone is saying the same thing, which is to set the custom authenticati
Solution 1:
In my templates I use Widget Tweaks
<form method='POST' action="/" enctype='multipart/form-data'>
{% load widget_tweaks %}
{% csrf_token %}
{{ form.first_name |add_class:"customCSS1 customCSS2" }}
{{ form.second_name |add_class:"form-control customCSS4" }}
</form>
{{ form.media.js }}
with this plugin you can style the form as you wish. You could add your form-control
class or use a personal CSS class like
.customCSS1{
width60%;
border-radius:5px;
}
Post a Comment for "Custom "authentication_form" Does Not Apply Bootstrap Css"