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/manage.py runserver

Traceback (most recent call last):
File "mysite/manage.py", line 14, in <module>
execute_manager(settings)
File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 438, in execute_manager
utility.execute()
File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name,
name))
File "d:\Python26\lib\site-packages\django\utils\importlib.py", line
35, in import_module
__import__(name)
File "d:\Python26\lib\site-packages\django\contrib\staticfiles
\management\commands\runserver.py", line 4, in <module>
from django.core.management.commands.runserver import
BaseRunserverCommand
File "d:\Python26\lib\site-packages\django\core\management\commands
\runserver.py", line 9, in <module>
from django.core.servers.basehttp import AdminMediaHandler, run,
WSGIServerException
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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment