This is the fourth part of the django deploy environment, you may find the third part here.
In this part we'll see how to freeze the project requirements, use versioning and prepare all in order to automate the deployment in production with fabric (which will be the argument of the last post, part 5).
Create a requirements.txt
As said in all previous posts, all the packages used by our project have been installed in a virtualenv which is strictly connected to our project. And if you were asking yourself why this is a convenient way to approach the django developement issue here comes the answer.
Activate the virtualenv, go inside the container folder of your django project and then perform this simple command
$ pip freeze > requirements.txt
This command simply creates a requirements.txt files which contains all the project dependencies, look at the image illustrating the project folder structure in the part 2, you'll see the same file there.
The nice part here is that you may setup an equivalent environment, with all the dependencies ...
read the full post