I'm setting up my first Django and my first project on a Windows XP
machine, following the Django tutorial part 1 (http://
docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01).
I'm stuck at the point where it says to test the installation by
starting the Django development server with the command: "python
manage.py runserver".
When I do that, I get the error:
C:\django\portal>python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 2, in ?
from django.core.management import execute_manager
File "C:\python24\Lib\site-packages\Django-1.1\django\core\management
\__init__.py", line 3, in ?
from optparse import OptionParser, NO_DEFAULT
ImportError: No module named optparse
There is no optparse.py within the Django installation (at C:
\Python24\Lib\site-packages\Django-1.1\) but there is one in C:
\Python24\Lib\.
Why is the "import" is not finding it?
~ TIA
~ Ken
PS This is similar to another post in this forum, at
http://groups.google.com/group/django-users/browse_thread/thread/1959f1635c89d8b2/38464d1999e43303?lnk=gst&q=python+manage.py+runserver#38464d1999e43303.
But the advice given there doesn't seem to apply here.