Reputation: 363
I'm wondering what steps are evolved in moving a django project to a new server. basicly i'm completely new to Django and have a few questions. The server it is on is now is not stable so I need to act fast. I did not build the app that is there but have pulled down the www folder from the root server. The server is running centOS.
Questions. is Django backwards compatible or will I need to insure that the same version is installed?
Apart from moving the files what other steps are involved in running the app?
Will I need to use centOS or will any linux server do?
I have a database cluster of PostgreSQL ready to go also.
Upvotes: 1
Views: 132
Reputation: 28702
Start with the docs here - this will give you a good overview.
To your specific questions:
1/ Django is not backwards compatible. You should install 1.6.x. Likely, there's a requirements.txt
file in the root directory of your app. On your new server, install pip and then pip install -r requirements.txt
will install your dependencies. I would personally use virtualenvwrapper
to manage your dependencies on the server
2/ Check the docs, but the main steps are:
3/ You will need to edit your settings.py
of the Django project and update certain variables.
./manage.py syncdb
and ./manage.py migrate
(if you're using South) to set up the database schema. SECRET_KEY
between deployments.ALLOWED_HOSTS
appropriately for your new deployment as well.Good luck!
Upvotes: 2