1👍
do I need to deploy it with all the Python ‘come-with’ modules
Never do that. It might conflict with the dependencies on the server. Instead issue the following command to create a dependency file (requirements.txt
).
pip freeze > requirements.txt
(issue this command where manage.py
is located)
On the server create a new virtual environment. Now copy django project to the server (you can do this using git clone
or just plain old Filezilla). Activate virtual environment. Then change you current working directory to the where manage.py
is located. to install all the dependencies issue the following command.
pip install -r requirements.txt
This will install the required dependencies on on server.
👤Cody
Source:stackexchange.com