Skip to content
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 Integration + Sample with Vue or HTMX #238

Open
george72 opened this issue Jan 18, 2023 · 0 comments
Open

Django Integration + Sample with Vue or HTMX #238

george72 opened this issue Jan 18, 2023 · 0 comments

Comments

@george72
Copy link

Hi!

  • Chapter or Appendix: 19
  • Section: Javascript and Django

Description

Perhaps that's for another book but it would be very useful to have a sample and how to integrate Vue/Nuxts.js or Htmx with Django 3.2 o 4.0+

My undestanding is that Vue needs DRF in order to be integrated with Django even after setting up DRF for the first time and have a model api it is not clear to me how to put them together.

Regarding Htmx seem easy but still there is very little information about using it with Django.

What I'm trying to accomplish is something like this: In a Product Order where the user can add as many products as he wish from the product model. Once the user selects a product be able to set the price from the products model and let the price open to be changed by the user. If that is possible then I'd like to add a check that the price changed is not below the product cost which is also in the product model. Usually this would be in a formset or grid with product, quantity and price. Of course total price for the product order shall be calculated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant