本文介绍了Django-1.3测试版的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
专家!!我真的很热心学习django,并在Django-1.2上学到了一点,但是我安装了1.3版本,直到我使用命令python manage.py runserver运行服务器。这是一个巨大的错误。我找不出办法解决这个问题。错误如下:
Guys!! I'm really enthusiastic in learning django and learnt a bit on Django-1.2 but then I installed 1.3 version which is ok till I run the server using the command "python manage.py runserver". It's giving a huge error. I can't figure out a way to solve this. And error is given as :
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python 2.6/dist-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/commands /runserver.py", line 8, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 11, in <module>
from django.core import signals
File "/usr/local/lib/python2.6/dist-packages/django/core/signals.py", line 1, in <module>
from django.dispatch import Signal
File "/usr/local/lib/python2.6/dist-packages/django/dispatch/__init__.py", line 9, in <module>
from django.dispatch.dispatcher import Signal, receiver
ImportError: cannot import name receiver
推荐答案
为避免将来出现此类问题,请使用
To avoid problems like that in the future, use virtualenv
这篇关于Django-1.3测试版的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!