I have tried hard searching for the solution to my query but with no luck. I have made a website using django in my local machine. Now i want to install the same django made website in another machine. MySQL is the database i am using. How do i move the local django made website into another machine? If this question has been already put under discussion, my apologies.
Share
To set up the same Django site on a different machine, you can just copy the code across. When you try and run it, you’ll get errors if anything isn’t set up correctly which you can resolve one by one. A few errors you are likely to get are:
localhostor127.0.0.1, you will need to think about where to put the new databasemanage.py runserver)All these steps should simply be repeating things you did on the old machine.
If you have a ‘dev’ machine and a ‘production’ machine, you should consider deployment solutions that automate much of this process. You should also put the code into version control if it isn’t already (Git, mercurial, subversion) so that you can manage changes to the source from either location.
If you want to have the same site across both machines (so changes to one appear on the other) you are probably talking about ‘load balancing’. You’ll need to set up another server that can delegate requests to these two machines and point both at the same database.