4 ms·
Why? Server side rendering is often fast and well suited for pages with mostly read-only content.
by CameronNemo 7y ago
Why? Server side rendering is often fast and well suited for pages with mostly read-only content.
- postpawl 7y agoIf you integrate Django and vue this way (separate front end app), you can take advantage of the javascript build process for linting, minification, and whatever else: https://medium.com/@rodrigosmaniotto/integrating-django-and-vuejs-with-vue-cli-3-and-webpack-loader-145c3b98501a https://medium.com/@rodrigosmaniotto/integrating-django-and-... You can also get live reloading working.
- dtjones 7y agoYes, serverside rendering is generally more performant than a decoupled client/server-side approach. If server-side rendering is a requirement of the project I'd look into nuxt.js + vue I was commenting more generally on the approach to building a web app with Django and including external js libraries in Django templates, which I've done in the past as project requirements have changed over time. After including external js libraries to Django templates, there is a lot less support in terms of resources and supporting libraries such as testing frameworks. If the client-side project is initialized with Vue, the project can benefit from the overwhelming amount of supporting resources.