Packaging Django code for deployment
I recommend using virtual environment for your Django project.
source bin/activate your virtual environment in your server would simulate the same setup as of your local.
In your project

List all your dependencies in requirements.txt and settings in my_settings.py apart from django settings.py

In your server

just pull/transfer your code via git or any other means and activate virtual environment.

 pip install -r reuirements.txt and change any minor changes required in my_settings

Take care of your migrations and Db  setup. You may have to run migrations if you are migrating to your server for the first time.


And thats it you are up and running.
I'm getting ready to move my Django project from my laptop to my server.  What is the recommended way to do this?  E.g., is there a Django command that will package everything up (and select the correct settings file for test vs prod servers) and create a zip or tar file that can be moved over to the server?  Sort of like Ant for building Java projects.