How to transfer a python site to another computer?

I would like to know how to set up a complex python website that is currently running in a production environment on a local development machine?

The site currently uses python in combination with Django applications (registration modules + cms) in a virtual environment.

+5
source share
1 answer

If you use pippackage management, you can easily recreate virtualenv on another system:

In system1, run pip freeze --local > requirements.txtand copy this file to system2. There, create and activate virtualenv and use pip install -r requirements.txtto install all the packages that were installed in the previous virtualenv.

python ; find -name '*.pyc' -delete, , , ( - python) .

+12

All Articles