Skip to content

does django-select2 work with django rest framework? #90

Answered by codingjoe
chrcorn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @chrcorn,

Thank you for reaching out. I'll try to answer your question the best I can, making some assumptions, please let me know if I misunderstood your question.

So, this packages tries to deliver an out-of-the-box solution for Django's forms. However, some use cases require special integrations. If you don't use Django's forms, this package may not be suited for you. For you use case, I recommend building a custom integration of the Select2 library. You can build the endpoint, that delivers you the select options via DRF. If you have a very sophisticated frontend, you may even go ahead and write the frontend bit yourself in your JS framework.

Whatever path you choose, I hope this p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrcorn
Comment options

Answer selected by chrcorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #89 on October 01, 2021 08:03.