-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Suggestion for Vue and Python #345
Comments
Hello and Welcome to NearBeach. Thank you for submitting your very first issue at NearBeach. We hope to continue to see your support :D |
This can be done, the only hurdle I know of is getting Vue Router to talk to Django's URLs. |
When its all statically build and put under (lets say But I think I get what you mean, I usually only work with these "routes" like But eitherway yes it would need some changes in vue itself to not just switch the html "file" (current way) to just switch the browser path and let vue handle the loading of the needed static files to show things up |
I've had a small try whilst streaming - as I have not really used Routing before with VueJS, I am going to create a small project to fully understand it before determining how I would implement something like this. :D |
Correct me if I'm wrong. As far I understood your process (of serving to the browser is like that)
I think with that the recreation of the vue app on new click might be "ok" right now but its still alot of repeated overhead
What I suggest would be to go the actual "Single Page Application": Vue compiled once to many static files, which includes the templates that were previously done by python but instead in vue itself - and then python would just have to handle the static and data endpoints - no more also creating the templates with that - which means it saves some CPU work per request
the new user flow would be then like this:
If its already like that then I'm happy that this issue can be closed :D
The text was updated successfully, but these errors were encountered: