vue.js

How to integrate vuejs in a django project?

How to integrate vuejs in a django project? Question: we need to create a complete website with django and vue as part of a school project, however, we are having trouble integrating vue into our django project. To keep things simple we want to use vue directly in an index.html file located in a django …

Total answers: 1

Sending json data from localhost Jupyter notebook to vue page

Sending json data from localhost Jupyter notebook to vue page Question: deleted. oo -> del <- aa post client 30 characters Asked By: Jack D || Source Answers: In the Python script, you’re making a POST request. The error message from your other code says you’re making a GET request, which the endpoint doesn’t handle …

Total answers: 1

How do I get FastAPI to do SSR for Vue 3?

How do I get FastAPI to do SSR for Vue 3? Question: According to this documentation for Vue’s SSR, it is possible to use node.js to render an app and return it using an express server. Is is possible to do the same with FastAPI? Or is using Jinja2 templates or SPA the only solution? …

Total answers: 1

How to return json from FastAPI (Backend) with websocket to vue (Frontend)

How to return JSON from FastAPI (backend) with websocket to Vue (frontend)? Question: I have an application, in which the frontend is implemented in Vue and the backend uses FastAPI framework. The communication is achieved through websockets. Currently, the frontend allows the user to enter a term, which is sent to the backend to generate …

Total answers: 3

Vue is missing server side rendered DOM, doubling it and throwing hydration node mismatch

Vue is missing server side rendered DOM, doubling it and throwing hydration node mismatch Question: browser build and python (flask) backend. As far as I understand everything should work, the DOM is identical in both and doesn’t change after that, but vue ignores the server-side rendered DOM and generates it from scratch. What surprises me …

Total answers: 2

Django Rest Framework/Djoser sending role information to frontend (Vue)

Django Rest Framework/Djoser sending role information to frontend (Vue) Question: I am working on a simple site with a login functionality. To handle auth in the backend I am using the Djoser library. I have login functionality working. However now I want to create a site on my frontend which has restricted access based on …

Total answers: 2

Cannot import components into Vue when using Flask

Cannot import components into Vue when using Flask Question: I am currently working on a project with Flask and Vue and am trying to implement a carousel into my webpage. When following tutorials on creating a carousel, I run into issues creating and importing components for Vue. My current file structure is project │ app.py …

Total answers: 1

Is it possible to use a python script in Vue.js?

Is it possible to use a python script in Vue.js? Question: I observe that I cannot instantiate a child process in Vue.js. Is there any way to execute a python script in Vue.js (2.x) ? Asked By: David Capragiu || Source Answers: Vue is strictly a client-side framework, except when being used from Nuxt.js. If …

Total answers: 2