5👍
Did you follow all the steps in the getting started section?
Add django_select2 to your INSTALLED_APPS in your project settings.
Add django_select to your urlconf if you use any ModelWidgets:
url(r'^select2/', include('django_select2.urls')),
Add the CSS to the head of your Django template:
{{ form.media.css }}
Add the JavaScript to the end of the body of your Django template:
{{ form.media.js }}
Also, there appears to be an external dependency not provided by the module itself:
External Dependencies
jQuery version 2 This is not included in the
package since it is expected that in most scenarios this would already
be available.
- [Django]-Make model field equal concatenation of two fields in Django
- [Django]-Why isn't web2py more readily adopted?
- [Django]-Syntax error whenever I put Python code inside a Django template
- [Django]-Zsh: command not found: django-admin when starting a django project
- [Django]-Run Django commands on Elastic Beanstalk SSH -> Missing environment variables
-1👍
Well, it happens to me too recently… And turns out that the jquery script
(<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>)
should be placed first before any scripts that use jquery (it will use jquery, but the jquery hasn’t been called).
- [Django]-Trying to test django app locally with foreman
- [Django]-Error installing a django project AttrributeError: module 'collections' has no attribute 'Iterator'