Answer the question
In order to leave comments, you need to log in
How to migrate a Django site?
Hello!
Is there a website in jung, can it be painlessly transferred, or do you need to create an environment, project, application step by step, and then copy it, or is there an easier way?
Who cares, throw in the commands that are relevant for Django 1.7, because I heard syncdb and something else is no longer used, is it?
Answer the question
In order to leave comments, you need to log in
I assume transfer to a new hosting? In any case, this is not particularly painful, and not difficult.
1. Create an environment on a new hosting (it is possible without an environment, but it’s somehow better with it)
2. Merge the site itself from the repository to a new hosting (if there is no repository, first create it and add the code from the old hosting there)
3. Create base. Dump the databases on the old hosting and deploy on the new one.
Actually almost everything, except for the nuances.
About
Who cares, throw in the commands that are relevant for Django 1.7, because I heard syncdb and something else is no longer used, is it?:
Actually, he himself recently transported several such projects.
apt-get install nginx mysql-server supervisor uwsgi python-mysqldb python-profiler libmysqlclient-dev python-dev python-setuptools uwsgi-plugin-python
Dump the database and completely copy the existing environment + the project itself to the new host.
Everything started with half a kick.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question