Answer the question
In order to leave comments, you need to log in
Why won't Django run in virtualenv via Dropbox?
I am learning Django.
I want to dig with the project on different computers.
Created a project in virtualenv on a computer with Ubuntu 14.04 on Python 3.4. I put it all in my Dropbox folder.
On another computer with Ubuntu 12.04 and Python 3.4 installed, I start the environment, I try to run python manage.py runserver. But I am getting an error:
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
Answer the question
In order to leave comments, you need to log in
I will consider the issue conditionally resolved.
As I wrote above, the problem was in the environment, I recreated it with the --no-site-packages parameter.
This is not the first time I have encountered a problem due to the fact that I forget to specify this parameter.
The second issue is unmet Python 3.4 dependencies on Ubuntu 12.04.
Neither is related to either Dropbox or Git.
I want to dig with the project on different computers.
git commit
git push <remote host>
...
git pull
pip install -r requirements.txt
./manage.py runserver
Are you sure that the virtual environment is running? It looks very much like it doesn't.
I used to get sick like that too. Because of my laziness at home to download all the test media and statics, at work I threw a full project on DB. At home, I did pip install and let's go. BUT then hellish things started happening with the DP, He went nuts and did not want to let part of the share files of the project run. In the end it turned out that the problem was in the versions of the files. (But I think it was my jamb, because the computer at work was also in DP at that time.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question