Colar Project Django in virtualenv

0

Hello everyone, I have the following situation.

Create my Django application in a virtualenv environment, the application already runs is perfect in my virtual machine, the whole project was created within a virtualenv environment.

I am presented with the following situation I need to move my project to the final server, which has the same characteristics of my virtual machine, I would like to know what are the steps to clone my project from the environment virtualenv to move it to the new machine.

Or what steps are recommended to me so that my project runs in the final server since when copying and pasting I am presented with many errors by the libraries that I use for its development.

Thanks

    
asked by mikey 18.10.2018 в 05:26
source

1 answer

0

Copies the requirements of your local

pip freeze > requirements.txt

After you have the requirements, you install them on the server

sudo pip install -r requirements.txt
    
answered by 19.10.2018 в 23:39