I
I
Igor Che2015-11-29 19:30:55
Django
Igor Che, 2015-11-29 19:30:55

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

Why doesn't it start?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Igor Che, 2015-12-08
@chewarer

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.

S
sim3x, 2015-11-29
@sim3x

I want to dig with the project on different computers.

there is a workflow using an external repository - no need to reinvent the wheel, especially with dropbox
git commit
git push <remote host>

...
git pull
pip install -r requirements.txt
./manage.py runserver

A
Artyom Karetnikov, 2015-12-01
@art_karetnikov

Are you sure that the virtual environment is running? It looks very much like it doesn't.

Z
zelsky, 2015-12-02
@zelsky

Go to environment folder and do source bin/activate

S
Salavat Sharapov, 2015-12-05
@desperadik

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 question

Ask a Question

731 491 924 answers to any question