1👍
✅
Usually, you’d run the two servers on different ports locally. For example, Django on 8000 and Vue on 8001. And then you’d call your Django API from your web application using it’s port, e.g. localhost:8001/api/my-method.
Your production configuration will differ depending on your setup, but with Nginx, for example, you can point /api/
to one port and everything else to a different port.
Source:stackexchange.com