Is there any chance that there is more than one python hanging around?
 For instance, a root python, and a virtualenv made with
--no-site-packages (in newer virtualenv installs this is the default).

Or try adding the following to your manage.py (just before the line in
there that is in the stacktrace):

import sys
from pprint import pprint
pprint(sys.path)

If this doesn't include the site-packages or dist-packages directory
where Django is installed, figure out why.  (Are you playing with the
PYTHONPATH or PYTHONHOME environment variables?)

Bill

On 4/17/12, Michael Lewis <mjole...@gmail.com> wrote:
> Hi everyone,
>
> I've seen a lot of info regarding this error, but I can't seem to find
> anything that solves my problem. I am starting my first project - "Writing
> your first Django app, part 1". I've downloaded Django and can see that
> it's installed by running "import django". I then move on to this step to
> run "django-admin.py startproject mysite". That runs fine and creates
> "mysite" directory.
>
> My problem is when I run "python manage.py runserver", I get this error
> "ImportError: No module named django.core.management". The error makes it
> seem like the module doesn't exist. However, when I go to my python
> interactive shell, I can run "from django.core.management import
> execute_from_command_line" and I don't get any errors.
>
> Can you help me out?
>
> --
> Michael J. Lewis
> mjole...@gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to