problème0123
problème0123

Reputation: 871

How to integrate solidjs and django

I want to set up a web application which in backend uses django and in front end uses solidjs. In the development phase how do I integrate solidjs into django?

I have a directory called project which contains directory called:

Upvotes: 1

Views: 666

Answers (1)

snnsnn
snnsnn

Reputation: 13698

During development phase you can create a proxy config in your vite configuration file that makes API call to your django server:

https://vitejs.dev/config/server-options.html#server-proxy

For production, link the js file that has your solid app in your html file or html template you return from your server.

Upvotes: 2

Related Questions