Answer the question
In order to leave comments, you need to log in
Is there any difference in running an existing Django project?
Good afternoon.
All django installation tutorials describe how to install a bare system on a VPS. And if we developed a project on a local machine, for example, on PyCharm, and then we want to put it on a VPS. Are there any peculiarities in this case, for example, to re-register projects and folders with templates? Or can you just transfer the project via ftp and then connect the database?
Answer the question
In order to leave comments, you need to log in
No. You need to set up an environment on the server similar to the developer one.
I usually do this, all local settings (db, paths to templates, etc.) into a separate settings file and import it into the main one, throw everything into the turnip except for local settings and assets, clone the project to the server, set up the server (note nginx + uwsgi + django) then the local virtualenv environment rises, for example, or you can set everything globally, but I don’t advise. We put all the packages we need, we register our local config for the server, if everything is set up well, then everything will work. For convenience, you can generate a public key of the server and put it in the deployment keys in the repository, put fabric on the developer’s machine, write a deployment script and voila, you already have an automated deployment of updates to the server, there are still containers, but I didn’t use them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question