Open JianDk opened 3 months ago
Hi,
Since you are in the latest version of django-vite can you use the new way of defining settings (https://github.com/MrBin99/django-vite?tab=readme-ov-file#configuration) as this way will be deprecated at some point.
If it still doesn't work please let me know.
I wanted to change the port to 5174 instead of its standard at 5173. I have updated the change in my settings.py by adding this line
DJANGO_VITE_DEV_SERVER_PORT =5174
then in vite.config.js I have updated the server port to 5174 as below
In my template I found that vite_asset is still pointing to 5173 instead of 5174. Below is my template.html
the source code snippet from the rendered page shows
where I am expecting port 5174 as below
I have tried to restart both my django and vite servers and also cleared the cookies, but with the same result. My django-vite is version 3.0.4.