Friday, July 29, 2011

No module named servers.basehttp

I am following the tutorial. runserver ran fine until I added the
admin feature.

Now I enter D:\Python26\Lib\site-packages\django>d:\Python26\python
mysite/ runserver

Traceback (most recent call last):
File "mysite/", line 14, in <module>
File "d:\Python26\lib\site-packages\django\core\management
\", line 438, in execute_manager
File "d:\Python26\lib\site-packages\django\core\management
\", line 379, in execute
File "d:\Python26\lib\site-packages\django\core\management
\", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "d:\Python26\lib\site-packages\django\core\management
\", line 67, in load_command_class
module = import_module('' % (app_name,
File "d:\Python26\lib\site-packages\django\utils\", line
35, in import_module
File "d:\Python26\lib\site-packages\django\contrib\staticfiles
\management\commands\", line 4, in <module>
from import
File "d:\Python26\lib\site-packages\django\core\management\commands
\", line 9, in <module>
from django.core.servers.basehttp import AdminMediaHandler, run,
ImportError: No module named servers.basehttp

How do I fix this?

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment