N
N
Nikita Bratsky2021-03-04 14:25:16
Django
Nikita Bratsky, 2021-03-04 14:25:16

How to transfer a finished project (written) on Django from one server to another server?

Good day to all! Unfortunately, I can’t provide the files (the project was not written by me), the essence is this: there is an Ubuntu + nginx server, everything is set up, django is installed. There was a need to transfer the files of a project written in django from one server to another, what is the best thing to do in this situation? I could only find instructions for the initial setup (django-admin.py startproject <project name>). I repeat, the project has already been written, there is a question of transferring the project from one server to another

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-03-04
@bacon

I could only find instructions for initial setup (django-admin.py startproject <project name>)
this is not even a setting, but the creation of a project, and has nothing to do with deployment.
You need to deploy the project, there are a lot of instructions, as well as ways. In the simplest case,
copy the project folder,
copy the database ,
see if there is any instruction
to see the settings.py settings, what accesses to the database, there are links to absolute paths, on env
find out which libraries the project is tied to, in requirements.txt or Pipfile
find out which wsgi server used, leave it or take another
But the features may come up enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question