Reputation: 1451
It worked fine between windows OS but not in the mac. I didn't have requirements.txt file but was hoping the virtual environment with a lot of libraries imported by two developers would work just fine.
runserver generates error couldnt import django. Any ideas?
Upvotes: 2
Views: 198
Reputation: 14331
Virtualenvs sometimes include binaries and sometimes need to be created with flags so they can be moved. What I'd recommend:
pip freeze > requirements.txt
requirements.txt
to version controlpip install -r requirements.txt
The pip freeze
command will also include dependencies installed, so you may want to clean it up, but that should give you a working version. Good luck!
Upvotes: 2