Answer the question
In order to leave comments, you need to log in
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
As practice shows, manual deployment is very, very complicated and long.
git clone <url>
cd <project repo>
python3 -m venv env3
source env3/bin/activate
pip install -r requirements.txt
Who should be responsible for deploying the site? Programmer or individual system administrators?
Should there be a help service for deployment on hostings?
What is the complexity of copying files and deploying a backup of the database? I would start with Ansible.
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 questionAsk a Question
731 491 924 answers to any question