A
A
andreyAmaterasu2020-07-24 09:38:17
Django
andreyAmaterasu, 2020-07-24 09:38:17

How does deploying a Django project on the server happen?

The bottom line is that in the Django project I have the Rest Framework installed, and in Vue from the API I receive data for display, to receive data, I have the ip-address and port on which the Django server is running. If my project needs to be deployed to another person, then he needs to manually specify at what address and on what port the project should be available, and at the same time that it matches the address and port specified in the Vue application? Can anyone suggest how to implement such a deployment of the project on the server?5f1a81ced5976190160770.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-07-24
@andreyAmaterasu

It's obvious to use relative URLs in the front-end code, not absolute ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question