-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At wits end with django refusing to use widget-tweaks tags #46
Comments
The "solution" was very simple: We must load |
what is the error in this please help |
what is the error in this csrf token.. |
@Akil1996 it should be csrf_token, there needs to be an underscore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I've been troubleshooting this for many hours now, without avail.
I've pip-installed
django-widget-tweaks
, and included 'widget_tweaks' in mysettings.py
file.I also have this in my
base.html
file:I've tried a gazillion ways to
{{ field|add_class:"form-control" }}
or{% render_field...%}
, and each time it will throw an error along the lines of "did you forget to register this tag?My
.pug
file which extendsbase.html
:Error when using add_class:
Error when using
render_field
:Notice that while this is a
.pug
file, the|
basically means this is treated the very same like HTML/django variable.Things I've tried and didn't help:
widget_tweaks
and re-installingfor field in da_form
instead offor field in da_form.visible_fields
.pug
file andbase.html
, either, and both.core.widget_tweaks
(wherecore
is the app where my settings.py file is, that threw an error thatcore.widget_tweaks
isn't a registered tag)The text was updated successfully, but these errors were encountered: