ImportError: No module named django.core.management

5,183 views
Skip to first unread message

vinoth job

unread,
Jul 27, 2013, 1:28:26 PM7/27/13
to django...@googlegroups.com
i am working with someones source code .i getting errors in the initial steps .i followed  the installation instructions .and they instructed to create the virtual environment .After i setted the virtualenv  i installed all requirements given in the requirements.txt  .when i running this initial command

 python manage.py syncdb

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

 
 now what can i do.


Nevio Vesic

unread,
Jul 27, 2013, 1:34:40 PM7/27/13
to django...@googlegroups.com
My first guess is that django is missing.

René Fleschenberg

unread,
Jul 27, 2013, 8:12:27 PM7/27/13
to django...@googlegroups.com
Hi,

vinoth job:
> python manage.py syncdb
>
> 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

This error can also occur if the virtualenv is not actviated. Did you run
``source bin/activate`` (or the appropriate ``workon`` command, in case you're
using virtualenv-wrapper)? Does your shell prompt show the name of the
virtualenv?

If the virtualenv is activated: is Django really installed in the virtualenv?
What's the output of ``pip freeze|grep -i django`` (with the virtualenv being
active)?


--
René Fleschenberg

Am Stadtgarten 28, 45276 Essen, Germany
Phone: +49 1577 170 7363
E-Mail: re...@fleschenberg.net

vinoth job

unread,
Jul 28, 2013, 10:29:52 AM7/28/13
to django...@googlegroups.com
venv
     /bin
     /build
          /django
     /include
     /lib
     /local


here i installed django-1.4.5. and there is no error output coming when i run this command .

vinoth job

unread,
Jul 28, 2013, 10:31:39 AM7/28/13
to django...@googlegroups.com
venv
     /bin
     /build
          /django
     /include
     /lib
     /local


here i installed django-1.4.5. and there is no error output coming when i run this command .
pip freeze|grep -i django



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.



donarb

unread,
Jul 28, 2013, 10:41:58 AM7/28/13
to django...@googlegroups.com
How did you install it? That's not the normal place for the installation, it should be in lib/pythonxx/site-packages.

While in the virtualenv, you should be able to just type pip install Django, and it will install in the correct place.

vinoth job

unread,
Jul 28, 2013, 11:45:11 AM7/28/13
to django...@googlegroups.com
 i installed inside lib/python2.7/site-packages/django .now it is running.

vinoth job

unread,
Jul 28, 2013, 2:22:09 PM7/28/13
to django...@googlegroups.com
after cleared the above problem getting new error .....when i run this command : python manage.py syncdb

TypeError: __init__() got an unexpected keyword argument 'verify_exists'

and this is the problem i got in my terminal and i installed all the packages needed to run the application in  virtualenv .

Reply all
Reply to author
Forward
0 new messages