I am new to Django and want to explore the possibilities of this famous structure.
After all the settings, I started
sudo python manage.py syncdb ,
and i get this 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
I use virtualenv and virtualenvwrapper and I activated my working virtualenv by issuing the workon command.
Also, when I ran which python , I got the following:
/home/myname/Envs/EnvName/bin/python ,
and pip freeze| grep - django pip freeze| grep - django returns:
Django==1.5.4 django-toolbelt==0.0.1
The first line of my manage.py file is #!/usr/bin/env python .
Also
python2.7 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
gives
/home/myname/Envs/EnvName/lib/python2.7/site-packages
and in this directory I see a folder called django.
So, I think I'm really stuck, anyone?
python django
Mathcs
source share