I have updated to latest Django version 1.0.2 after uninstalling my old Django version.But now when I run django-admin.py I get the following error. How can I resolve this?
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\bin\django-admin.py", line 2, in <module>
from django.core import management
ImportError: No module named django.core
You must make sure that django is in your PYTHONPATH.
To test, just do a
import django
from a python shell. There should be no output:If you installed django via
setuptools
(easy_install
, or with thesetup.py
included with django), then check in yoursite-packages
if the.pth
file (easy-install.pth
,django.pth
, ...) point to the correct folder.HIH.