B
B
beginer02020-06-07 18:40:25
Django
beginer0, 2020-06-07 18:40:25

How to open a Django project (made on Linux) on Windows?

made a django application in linux system i want to transfer it to windows and work there. I read on the Internet how to activate a virtual environment on Windows, it says to activate in the venv_folder/Scripts/activate.bat folder, but in my project there is no .../Scripts/activate.bat in the virtual environment folder, there is a .../bin/activate folder in which I activate the virtual environment on Linux. How to transfer a project to wibdows and open it there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Dentist, 2020-06-07
@beginer0

In the Linux terminal, being in the project folder
pip freeze > requirements.txt
On Windows

python -m venv venv
./venv/Scripts/activate.bat
pip install -r requirements.txt

D
Dr. Bacon, 2020-06-07
@bacon

The virtual environment is not transferred along with the project, but is reinstalled, and the dependencies are described in requirements.txt or similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question