R
R
RabbitRun92021-05-10 00:30:22
Django
RabbitRun9, 2021-05-10 00:30:22

Deploy on Django, via Docker or what is better, easier?

Hi all. I would like intelligible advice and recommendations on the full-fledged deployment of the finished site (on django) to hosting!
As practice shows, manual deployment is very, very complicated and long.
1. Who makes it easier?
2. Is it possible to deploy a site using Docker? And how, at least briefly.
3. If deploy without Docker, then how. Where to begin?
Please sketch out the points in order, where to start and how to start. I will be very grateful.

And in general, question 4 - who should deploy the site at all? Programmer or individual system administrators? Should there be a help service for deployment on hostings?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2021-05-10
@RabbitRun9

As practice shows, manual deployment is very, very complicated and long.

And why is it complicated and long? Literally five commands:
git clone <url>
cd <project repo>
python3 -m venv env3
source env3/bin/activate
pip install -r requirements.txt

And enter the actual details for the database in the settings.
If the developer is setting up uWSGI / Gunicorn and Nginx himself, then he will also need to add a couple of typical files, each with about ten lines. All work for 5 minutes.
Who should be responsible for deploying the site? Programmer or individual system administrators?

Depends on the project and the terms of the contract with the employer.
Should there be a help service for deployment on hostings?

Looking at the hosting.

S
Sanes, 2021-05-10
@Sanes

What is the complexity of copying files and deploying a backup of the database? I would start with Ansible.

G
ge, 2021-05-10
@gedev

From something it feels like you need to deploy a site on shared hosting. This is true? If yes, then all the recommendations about gunicorn and setting up Nginx are forested. You take .htaccess and add a wsgi handler to it and create a wsgi script that will be the "entry point" for the project, create a virtual environment. Everything strongly depends on the hosting and it is unlikely that technical support will want to deploy your site. In general, there is nothing complicated. Typical example .
If VDS / VPS, then there are plenty of instructions on the Internet. If you have a system administrator, give the deployment to him.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question