Reputation: 85
I am new at Django and I have made an app. Here is the link to the github repository: https://github.com/akashmalla07/spring. I followed this http://tutorial.djangogirls.org/en/deploy/ to deploy my code, and while running python manage.py migrate
i am getting this error
ImportError: No module named 'django_nose'
I did not get this problem while developing on my local machine, but I am getting this problem on PythonAnywhere. Please help me. Thanks in advance
edited after following your solution i got this error
File "/tmp/pip-build-_l_qs3mn/wsgiref/setup.py", line 5, in <module>
import ez_setup
File "/tmp/pip-build-_l_qs3mn/wsgiref/ez_setup/__init__.py", line 170
print "Setuptools version",version,"or greater has been installed."
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-
build-_l_qs3mn/wsgiref/
And i have referred to other stackoverflow solution i.e
pip install --upgrade setuptools
but didnot worked for me.
Upvotes: 2
Views: 899
Reputation: 5867
It looks like your project requires a number of extra modules -- in your requirements.txt you have this:
Django==1.8.3
django-nose==1.4.1
nose==1.3.7
requests==2.7.0
wsgiref==0.1.2
The tutorial you are following only has instructions on how to install the modules that their demo application requires, which is just Django. So you need to install your extra modules too.
To do this, in the Bash console where you installed django, you need to run this command:
pip install -r /home/yourpythonanywhereusername/spring/requirements.txt
Don't forget to replace yourpythonanywhereusername
with your actual PythonAnywhere username.
Upvotes: 3