-
Notifications
You must be signed in to change notification settings - Fork 23
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
Does this only work in admin ? #17
Comments
|
Fix above import the widget from taggit_selectize and use it in your form make sure jquery is at the top of your html template. |
Hi, I have changed the form and I have also added the js and css files manually. Css in the head and js at the bottom just above the . I am still not able to use it outside the admin. |
I detailed an example on stackoverflow recently that might help https://stackoverflow.com/a/51464694/960471 |
@andytwoods Yes, I have gone through that multiple times. But since I am new to Django and Python few things there were complex for me . Let me explain you what I am doing.
I have added this in class Meta of my post form
I have added the JS and CSS manually in my template. It still doens't work for me. Is there anything I can do apart from all this ? |
I think Stackoverflow is a better place for this conversation. But check to see if you have JS errors (via browser console). I suspect js ajax is not reaching your backend (urls.py needs configuring). |
@andytwoods Yes, I have configured my urls. Also one more thing, I am using Martor Editor for the text of article, which uses semantic.js and the tags are on the same page. semantic.js has messed up my other JS. So, now I am loading them only in the Post Create form but selectize.js also loads on the same page. Could it be a reason ? |
Have you tried commenting out semantic.js qnd changing the order of them in the template |
@brianbola90 Hi yes, I just tried it it didn't work even after commenting out semantic.js. I have tried loading the selectize.js almost everywhere in the template (even in the head), right now I am loading it just under the jquery and above popup, bootstrap etc. |
I'm pretty sure the problem comes from jquery not being loaded soon enough, throwing a
Try and put your |
can this be implemented in a user form ? Any Info on how to do this?
The text was updated successfully, but these errors were encountered: