-
Notifications
You must be signed in to change notification settings - Fork 317
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
django_select2.js is not loaded correctly when using a CDN in production #221
Comments
hm.... that's because of the static thing. That is actually wrong. We should fix it. |
Sorry. I misread you ticket. |
Mmmh, ok. Seems weird though, since it can needs more than "be prepended with the value of the appropriate prefix". In my case, the static URL is |
Seems so. Curious tho, please approach Tim code.djangoproject.org. I'd really like to clarify this issue. |
I found a ticket specifying the same problem, created two years ago (but updated recently): https://code.djangoproject.com/ticket/21221 Last comment's author uses the same trick to bypass the problem... |
@mlorant I commented on the issue. Let's see where it goes. Should there be an action form my side required, I will do so during django under the hood. |
See applegrew#221 for more information
See applegrew#221 for more information
See applegrew#221 for more information
@mlorant I wrote a patch for django django/django#5571 (comment) Cheers, Joe |
@codingjoe I subscribed to the PR, so I followed activity about it. I also did a fork of the plugin, which includes the |
Hi,
I am using Amazon S3 to serve my static files in production. Since the upgrade to version 5, the file django_select2.js is not served correctly. Indeed, Django tries to fetch
mywebsite.com/static/django_select2/django_select2.js
instead of the Amazon S3 file.I hotfixed this by editing Select2Mixin:
It works fine in local and with local static serving though. I did not try my patch on other environments, so I don't know if this have consequences on other uses.
The text was updated successfully, but these errors were encountered: